字符串相加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