小编use*_*127的帖子

如何在python中获取log10值的倒数?

y=np.log10(train_set["SalePrice"])
Run Code Online (Sandbox Code Playgroud)

我如何找到这个的反面??我希望它返回到原始值而不是缩放值

python inverse

4
推荐指数
2
解决办法
2万
查看次数

Python Tkinter ttk 日历

我正在尝试为日期条目创建下拉日历。下面是我的代码的一部分:

它的下拉部分不起作用,我似乎无法在DateEntry()任何地方找到ttk 日历的语法来包含日历小部件选项!

#creating the frame 
from tkinter import *
from tkcalendar import *

root = Tk()

f1=Frame(root,width=1500,height=100,relief=SUNKEN,bd=4,bg='light steel blue')
f1.pack(side=TOP)
f2=Frame(root,width=1500,height=550,relief=SUNKEN,bd=4,bg='white')
f2.pack()
f3=Frame(root,width=1600,height=100,relief=SUNKEN,bd=4,bg='white')
f3.pack(side=BOTTOM)


#Creating the date column
l4=Label(f2,text='DATE',font=('tahoma',20,'bold'),fg='black',anchor='w')
l4.grid(row=0,column=3)

cal=DateEntry(f2,dateformat=3,width=12, background='darkblue',
                    foreground='white', borderwidth=4,Calendar =2018)
cal.grid(row=1,column=3,sticky='nsew')
Run Code Online (Sandbox Code Playgroud)

我希望它看起来像这样: 截屏

python tkinter ttk tkcalendar

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

python ×2

inverse ×1

tkcalendar ×1

tkinter ×1

ttk ×1