1.将数字转换成字符型 1 a=123 2 b='string' 3 c=str(a)+b 2.利用%s替换 1 a=123 2 b="%s string" % a 转载于:https://www.cnblogs.com/youxu/archive/2013/05/25/3098323.html