02 2021 档案
摘要:背景:想要通过读取配置文件动态生成方法 实践1 使用关键字exec实现生成方法,参考 https://www.cnblogs.com/wjlv/p/14276827.html m = """ def fn(a,b): c=2 s=a+b+c return s """ exec(m) print(fn
阅读全文
摘要:更新apt下载源 cd /etc/apt/&& cp sources.list sources.list.bk&& echo deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free > sources
阅读全文