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")