91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4.66KB
    文件類型: .py
    金幣: 1
    下載: 0 次
    發布日期: 2021-03-03
  • 語言: Python
  • 標簽: Excel??Cell??csv??合并??cs??

資源簡介


資源截圖

代碼片段和文件信息

#from?tkinter?import?TkLabelButtonEntryStringVarText
from?tkinter?import?*
import?pandas?as?pd
from?tkinter?import?filedialog
from?tkinter.messagebox?import?*
import?random
import?os
import?datetime
import?codecs
import?chardet
import?warnings
warnings.filterwarnings(“ignore“)
root=Tk()
e=StringVar()
e.set(1)#默認為1行
label=Label(roottext=‘請輸入表頭行數‘width=20height=10font=(‘宋體‘10‘bold‘))
label.place(relx=0.4rely=0anchor=NE)
entry=Entry(rootvalidate=‘key‘textvariable=e)
entry.place(relx=0.4rely=0.2anchor=NE)
text=Text(rootwidth=30height=20bg=‘white‘fg=‘blue‘)
text.place(relx=0.4rely=0.4anchor=N)
def?gettime():
????global?time1
????time1=““
????time2=datetime.datetime.now().strftime(u‘%Y-%m-%d\n?%H:%M:%S‘)
????Label(root?text=‘當前時間:‘bg=‘yellow‘font=10).place(relx=0.7rely=0.2)
????if?time2?!=?time1:
????????time1?=?time2
????????clock?=?Label(roottext=time1font=(‘宋體‘10‘bold‘)fg=“green“)
????????clock.configure(text=time2)
????????clo

評論

共有 條評論