📌  相关文章
📜  如何在 python 代码示例中将字符串与 int 连接

📅  最后修改于: 2022-03-11 14:45:15.268000             🧑  作者: Mango

代码示例2
number = [1,2,3,4,5]

number.reverse()
# to concatenate strings and int
# One needs to use str() to convert the string into int 

print("Reverse list: "+ str(number))