摘要: =题目一= input=333 def func(): input=444 func() print(input) 333 =题目二 def func(): print(x) x=111 func() 111 =题目三= x=1 def func(): print(x) def foo(): x=2 阅读全文
posted @ 2020-03-19 18:53 Dimple_Y 阅读(141) 评论(0) 推荐(0)
摘要: 1、写函数,,用户传入修改的文件名,与要修改的内容,执行函数,完成批了修改操作 def file_update(name, old_msg, new_msg): import os with open(f"{name}", "r", encoding="utf-8") as f, \ open(f" 阅读全文
posted @ 2020-03-19 00:32 Dimple_Y 阅读(169) 评论(0) 推荐(0)