总是报错SyntaxError: Non-UTF-8 code starting with '\xa3' in file C:\Users\70686\source\repos\PythonApplication3\PythonApplication3\PythonApplication3.py on line 3, but no encoding declared; see https://python.org/dev/peps/pep-0263/ for details
下面是写的代码
price = 0
amount = 0
weight = int(input("plese enter weight:"))
where=input("please enter place:")
where1="dongsansheng"or"qinghai"or"ningxia"or"hainan"
fprice1=12
eprice1=10
where2="xinjiang"or"xizang"
price2=20
where3="hongkong"or"aomen"or"taiwan"or"oversea"
if weight<=3:
if where==where1:
amount=fprice1*weight
if where==where2:
amount=price2*weight
if where==where3:
print("shipments from this area will not be accept")
if weight>3:
if where==where1:
amount=fprice1*3+eprice1*weight-eprice1*3
if where==where2:
amount=price2*weight
if where==where3:
print("shipments from this area will not be accept")
print("sent to the place:",where,"courierweight:",weight,"amount:",amount)