print (str.encode()) # 默认编码是 UTF-8 输出:b'\xe5\xad\xa6\xe4\xb9\xa0Python' print (str.encode('gbk')) # 输出 b'\xd1\xa7\xcf\xb0Python' # decode ...
Notifications You must be signed in to change notification settings #Write a Python program that uses a for loop to print the numbers from 1 to 10. for i in range(1,11): print(i) #Create a program ...