首页
技术
登录
6mi
u
盘
搜
搜 索
技术
python 清空文件
python 清空文件
技术
2024-07-16
69
import os cur_path = os.getcwd() scrip_path = os.path.join(cur_path, "01.py") with open(scrip_path, "r+") as f: f.truncate()
转载请注明原文地址:https://ipadbbs.8miu.com/read-50827.html
最新回复
(
0
)