字符串相加python
a = "alex" b = "wusir" prin("a+b")
字符串相乘code
a = "alex" print(a*3)
import getpass name = input("请输入你的用户名:") password = getpass.getpass("请输入你的密码:") #只能在cmd中运行 print(password)
if 3>2: print("yes") if 3>1 print("yes too")
a = int(input("输入一个数:")) if a>2: print("hello") else: print("hello world")
age =20 if age < 18: print("too young") elif age < 30 and age >18: print("也不小了") else: print("还能折腾几年啊")
if 50>0: print(666) if 20>0: print(6666) if 10>0: print(66666) else: pass