随笔分类 -  python

摘要:pip install --upgrade pip 阅读全文
posted @ 2022-12-19 17:07 212的s 阅读(22) 评论(0) 推荐(0) 编辑
摘要:with open('./html.html', "r",encoding='utf-8')as f: txt =''.join( f.readlines()) f.close() 阅读全文
posted @ 2022-12-19 17:07 212的s 阅读(28) 评论(0) 推荐(0) 编辑
摘要:with open("./data.txt", "w",encoding='utf-8')as f: f.write(','.join(columns)) f.close() 阅读全文
posted @ 2022-12-19 17:06 212的s 阅读(176) 评论(0) 推荐(0) 编辑
摘要:执行后等待exe完成再继续 import subprocess login_info = [r'D:\xxx\a.exe', '参数1=22'] subprocess.check_call(login_info) 阅读全文
posted @ 2022-12-19 17:06 212的s 阅读(360) 评论(0) 推荐(0) 编辑
摘要:import random r=random.randint(20,40) print(r) 阅读全文
posted @ 2022-12-19 17:04 212的s 阅读(20) 评论(0) 推荐(0) 编辑
摘要:import time #延时1秒 time.sleep(1) 阅读全文
posted @ 2022-12-19 17:04 212的s 阅读(129) 评论(0) 推荐(0) 编辑
摘要:1 import time 2 import datetime 3 4 5 #函数定义 6 def getTimeNow(): 7 return datetime.datetime.now() 8 def getYesterDay(): 9 return getTimeNow() + datetim 阅读全文
posted @ 2022-12-19 17:02 212的s 阅读(50) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示