Python 数字转化为字符串

num = 322 str = '%d' %num #str即为num转换成的字符串   经常使用的格式化字符串: %d  整数 %f   浮点数 %e  科学计数 From:Python学习(2)——字符串与数字转化python
相关文章
相关标签/搜索