我写了一个脚本,并且可以在Anaconda上使用。但是,在由namecheap托管的网站上,输入功能似乎无效,这是怎么回事?
网站地址:http://xterraminer.com.au/cgi-bin/nctests.py
已经将namecheap python设置为Django,不确定是否有帮助。
> user_input=float(input("What is your income?")) tax=float()
> take_home=float() if user_input<=18200:
> print("You pay $0 tax") elif user_input>18200 and user_input<=37000:
> tax=(user_input-18200)*0.19
> print("Your tax is $",tax) elif user_input>37000 and user_input<=90000:
> tax=(user_input-37000)*0.325+3572
> print("Your tax is $",tax) elif user_input>90000 and user_input<=180000:
> tax=(user_input-18200)*0.37+20797
> print("Your tax is $",tax) elif user_input>180000:
> tax=(user_input-18200)*0.45+54097
> print("Your tax is $",tax) take_home=user_input-tax print("Your take home pay is $", take_home)
希望网站要求输入