Python如何在桌面创建10个数字命名的文件?#Python2022-04-18 09:13分类:Python 0 条评论 请先 登录 后评论 默认排序 时间排序 1 个回答|206 次阅读 2022-04-18 09:13 Coco老师 - 官方公众号:青少儿编程学习网 擅长:编程教育 • 网站:https://kidscodes.cn/def text_creation(): path = 'C:/Users/Administrator/Desktop' for name in range (1,11): with open(path + str(name) + '.txt','w') as text: text.write(str(name)) text.close() print ('done')text_creation() 请先 登录 后评论