摘要:
恢复内容开始 1.json & pickle 磁盘上只能存储字符串或二进制数据,直接存字典、列表、元组等是存不了的,所以需要把各种数据转换成字符串格式,然后再存到硬盘。 直接将一个字典类型的数据写入硬盘,提示错误:TypeError: write() argument must be str, no 阅读全文
摘要:
1. 使用iter实现接收用户多行输入 stopword = '' str = '' print('请将要添加的内容输入下方,输入空白行按回车退出程序:') for line in iter(input,stopword): str += line + '\n' with open('config' 阅读全文
摘要:
1.Special Symbols and Characters 1.1 single regex 1 . ,Match any character(except \n) ^ ,Match start of string $ ,Match end of string * ,Match 0 or mo 阅读全文