目录变量定义输入输出条件判断循环结构函数定义类与对象变量定义Python是动态类型语言,变量声明时无需指定类型:a = 0 # 整型 (int)s = "string" # 字符串 (str)b = True