yl6688

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2023年2月10日

摘要: #案例1,多文件行遍历循环import fileinputfor line in fileinput.input(files=('g:\main.py','g:\yibao.txt')): print(line) print('hello,world')#循环体fileinput.close() # 阅读全文
posted @ 2023-02-10 20:41 追梦寒星 阅读(24) 评论(0) 推荐(0) 编辑