问题: 如何将两个数字拼接
解决方法:将整形数字转成字符串拼接后,在转回整形。
>>> a = 1 >>> b = 2 >>> c = str(a) + str(b) >>> print(int(c)) 12
标签:两个,数字,Python,拼接,str,整形 From: https://www.cnblogs.com/wutou/p/16946006.html
问题: 如何将两个数字拼接
解决方法:将整形数字转成字符串拼接后,在转回整形。
>>> a = 1 >>> b = 2 >>> c = str(a) + str(b) >>> print(int(c)) 12
标签:两个,数字,Python,拼接,str,整形 From: https://www.cnblogs.com/wutou/p/16946006.html