python2.4 project: Express Invoicing program

# Develop a pricing program delivery
within 3kg: the Northeast, Ningxia, Hainan, 12 yuan; Xinjiang, Tibet 20 yuan; Hong Kong, Macao and Taiwan, overseas: do not accept; the other 10 yuan.
More than 3kg parts: the Northeast, Ningxia, Hainan, 10 yuan per kilogram; Xinjiang, Tibet 20 yuan per kilogram; Hong Kong, Macao and Taiwan, overseas: Contact the company; the other five yuan per kilogram.
print ( "Welcome to the STO pricing system")
weight = int (the INPUT ( "Please enter your weight:"))
NUM = the INPUT ( "Please enter the location number (01. 02. Other Northeast, Ningxia, Hainan 03 Xinjiang, Tibet 04. foreign: ")
. price = 0
IF weight> =. 3:
IF NUM ==" 01 ":
. price = 10 + (weight-. 3). 5 *
elif NUM ==" 02 ":
. price = 12 is + (weight-. 3) * 10
elif NUM == "03":
. price = 20 is + (. 3-weight) * 20 is
elif NUM == "04":
Print ( "Information Corporation")
the else:
Print ( "input error" )

elif weight> weight and 0 <. 3:
IF NUM == "01":
. price = 10
elif NUM == "02":




print ( "! does not accept Sent")
the else:
Print ( "input error")


the else:
Print ( "input error!")

 

Guess you like

Origin www.cnblogs.com/lma0702/p/11106965.html