Python学习_函数
print() #打印函数
例:
print(50 + 50) #打印50+50=多少
输出:100
type() #查看数据类型函数函数
ces = type('张三')
print(ces) #写法1
print(type('张三')) #写法2
例:
ces = type('张三') #ces为变量,查看type里面的张三属于什么数据类型。
print(ces) #打印ces变量。
输出:<class 'str'> #string 属于字符串
下一篇: Python学习_变量_常量



Hellcyms
2026年9月16日 上午7:54
努力学习
长安
2026年9月16日 下午1:03
支持支持