摘要:
username=input("请输入你的用户名:") password=input("请输入你的密码:") with open("小王要变强",mode="w+",encode="utf-8") as f: print("{}\n{}".format(username,password)) pri 阅读全文
摘要:
文件操作 小王要变强.txt 1.只读 1.文件路径:d:\小王要变强.txt 2.知道编码方式:utf-8 gbk 3.对文件的操作方式:只读,只写,读写,写读,追加。。。。 f=open("d:\小王要变强",mode="r",encode="utf-8") content=f.read() p 阅读全文
摘要:
ascii A 00000010 8位 一个字节 uncode A 000000000 00000001 00000010 00000100 32位 中000000000 00000001 00000010 00000110 32位 utf-8 A 0010 0000 8位 一个字节 中 00000 阅读全文