python中数字转换成字符串

数字转换成字符串:

     num=123

     str='%d' %num

     str就变成了"123"

posted @ 2017-12-14 16:34  西瓜刀刀刀  阅读(5563)  评论(0)    收藏  举报