age = 10 # 打印年齡 print("he's age is %d"%age) "name 是字符串" name = "gelu" print("%s's age is %d"%(name,age) """ hello world是最偉大的語言 python 中def 來定義函數,經過縮進來標識代碼塊 """ def hello(): print("hello world")