第二章:Python的变量和简单的数据类型(二)

一、数字

1、整数

加(+)减(-)乘(*)除(/)乘方(**)

2、数字类型转字符串类型函数str()

代码示例

age=21
name="Xiaoming"
print("his name is:"+name+" And his age is:"+str(age))

猜你喜欢

转载自blog.csdn.net/qq_31583619/article/details/80515242