摘要:
1.文件操作方法 修改文件中的部分内容:(方法1) import oswith open('words',encoding='utf-8') as fr,open('.words.bak','w',encoding='utf-8') as fw: for line in fr: new_line = 阅读全文
摘要:
python基础: 回顾 1. 条件判断 if : x else: xx 循环 while for for i in range(5): 2. 数据类型: int 类型 float 小数类型 string 字符串 布尔类型 # 可变变量:里面的元素你可以随便修改 list #不可变变量:里面值不能修 阅读全文