时间:2026-05-01 02:35:26
1、num=322
str='%d'%num
str就已经转变为字符串数据
2、也可使用‘’+ num
将数字型转变为字符串类型
3、可使用type(num)
来查看类型