decode bytes in position 2-3: truncated \UXXXXXXXX escape
>>> import os
>>> os.system(r"C:\Users\Administrator\Desktop\helloworld.py")
在python中\是转义符,\U表示其后是UNICODE编码,因此\User这里会出错,在字符串前面加个r表示不进行转义就可以了
decode bytes in position 2-3: truncated \UXXXXXXXX escape
>>> import os
>>> os.system(r"C:\Users\Administrator\Desktop\helloworld.py")
在python中\是转义符,\U表示其后是UNICODE编码,因此\User这里会出错,在字符串前面加个r表示不进行转义就可以了