『壹』 python基礎教程
2020年最新Python零基礎教程(高清視頻)網路網盤
鏈接:
若資源有問題歡迎追問~
『貳』 請問python如何使用tk繪制圖片這種表格,並且可以在空白處添加數據後保存文件
這明顯不是 tk 乾的活啊。 這應該是一張web 表格,或者 WORD 模板 才合適。
『叄』 python教程哪裡下載
一、Python入門到進階的 廖雪峰 Python & JS & Git 教程PDF版 鏈接:『肆』 python TK怎麼讓他輸入什麼下載什麼
deftest():
text=s.get()
.............
.............
print(text)
s=StringVar()
entry=Entry(...............,textvariable=s)
button=Button(.................,command=test)
entry.grid(.............)
button.grid(...........)
以上,主要是要添加一個textvariable參數,可以多看看Tk相關知識。具體應用可以學習參考這個項目:網頁鏈接
望採納
『伍』 python modbus_tk我想看看這個怎麼用,怎麼樣可以看到例子和詳細的教程
IF是一個邏輯功能。
C2 = IF(B2> 100,B2,100)
解釋:在B2單元格中的數據大於100,實際數據的單元格B2,或等於100
『陸』 python3.0 tk的使用
有什麼問題嗎 ,剛好之前寫過一些關於py3 tk的東西,可以一起探討一下,給你一個例子:
importurllib,urllib.request
importos,re
fromtkinterimport*
importtkinter.ttk
importctypes
importthreading,time
defRunApp():
handler=None;
operator="open";
fpath="D:SoftWareChromeChromechrome.exe";
param='-user-data-dir="D:SoftWareChromeprofil';
dirpath='D:SoftWareChromeChrome';
ncmd=1;
shell32=ctypes.windll.LoadLibrary("shell32.dll");
shell32.ShellExecuteW(handler,operator,fpath,param,dirpath,ncmd);
defcallbackfunc(blocknum,blocksize,totalsize):
'''回調函數
@blocknum:已經下載的數據塊
@blocksize:數據塊的大小
@totalsize:遠程文件的大小
'''
percent=100.0*blocknum*blocksize/totalsize
ifpercent>100:
percent=100
prb['value']=percent
lbjd['text']='更新進度%0.2f'%percent+'%'
#print(percent)
defprbadd():
prb['value']+=1
defLoad():
time.sleep(0.5)
t1=threading.Thread(target=down)
t1.start()
defdown():
nfn=vel+'_chrome_installer.exe'
print('hehe')
urllib.request.urlretrieve(link,nfn,callbackfunc)
os.system('update.bat'+nfn)
#print('更新完成')
#os.system('PAUSE')
#os.system('''startD:SoftWareChromeChromechrome.exe-user-data-dir="D:SoftWareChromeprofil"''')
RunApp()
root.quit()
html=urllib.request.urlopen('http://down.tech.sina.com.cn/page/40975.html').read().decode('gbk')
t=re.search('(?<=down_load_url"href=")[^"]+(?="target="_blank"class="f14b">正式版-)',html)
link='http://down.tech.sina.com.cn'+t.group(0)
title=html[html.index('<title>')+7:html.index('</title>')]
vel=title[title.rindex('/')+1:title.index('】')-3]
ls=os.listdir('../Chrome/')
forfninls:
iffn.find('exe')==-1:
oldvel=fn
break
ifoldvel!=vel:
root=Tk()
root.title('Chrome更新工具')
#root.attributes("-toolwindow",1)
lbjd=Label(root,text='更新進度')
lbjd.pack()
prb=tkinter.ttk.Progressbar(root,length=400,maximum=100.0,value=0)
prb.pack()
sw=root.winfo_screenwidth()
sh=root.winfo_screenheight()
root.geometry('410x50+'+str(int((sw-410)/2))+'+'+str(int((sh-50)/2)))
#root.bind('<Visibility>',Load)
Load()
root.mainloop()
else:
#print('已經是最新版本')
RunApp()
#os.system('''startD:SoftWareChromeChromechrome.exe-user-data-dir="D:SoftWareChromeprofil"''')
#print(title)
這個是我自己更新chrome用的