2022年5月29日
摘要: python支持函数返回多个变量,操作实例如下: def test(): a=1 b=2 return a,b print(test()) # (1, 2) a,b=test()print(a) # 1print(b) # 2 print(test()[0]) # 1print(test()[1]) 阅读全文
posted @ 2022-05-29 11:40 胖娃 阅读(394) 评论(0) 推荐(0)
摘要: 下载pip包 pip install pyautogui 程序源码 import pyautogui import time while True: pyautogui.hotkey('ctrl', 'tab') # 可以使用组合键,本质上是 ''' pyautogui.keyDown('shift 阅读全文
posted @ 2022-05-29 11:18 胖娃 阅读(481) 评论(0) 推荐(0)
摘要: 当使用如下代码时,会出现如题错误 ent2=Entry(root,width=10).place(x=20,y=40,anchor='nw')num=ent2.get()1解决方法:改为 ent2=Entry(root,width=10)ent2.place(x=20,y=40,anchor='nw 阅读全文
posted @ 2022-05-29 11:15 胖娃 阅读(815) 评论(0) 推荐(0)