Python自学:第二章 使用函数str( )避免类型错误

age = 23
message = "Happy " + str(age) + "rd Birthday"
print(message)

输出位

Happy 23rd Birthday

猜你喜欢

转载自www.cnblogs.com/zhouxiin/p/10660773.html