📜  使用整数 python 代码示例附加字符串变量

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

代码示例3
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))