摘要:
#decoding转为字符串:解码;encode转为二进制:转码msg = "我爱北京天安门"print(msg.encode()) #encode默认utf-8print(msg.encode(encoding="utf-8").decode(encoding="utf-8")) 阅读全文
摘要:
sys.path的输出: ['C:\\Users\\Administrator\\PycharmProjects\\S14\\Day2' 'C:\\Users\\Administrator\\PycharmProjects\\S14' 'C:\\Program Files\\Python36\\py 阅读全文
摘要:
import getpass_username = 'wu'_password = 'wu123'username = input("username:")#password = getpass.getpass("password:") #密文输入password = input("password 阅读全文
摘要:
阅读全文