1.编码表:常用UTF-8、BGK
2.第一个代码:print("hello,world!")
3.if代码:
number = 50
q = input("请输入你的猜测数字:")
if q == 50:
print("You get the answer!")
elif q < 50:
print("Your number is too low.")
else q > 50:
print("Your number is too high.")
4.算数代码
name = input("your name:")
age = input("your age:")
OS = 80
last_year = OS - int(age)
print("There are " + last_year +" years you can live.")
原文:https://www.cnblogs.com/sjdde/p/14924470.html