Python自学:第二章 使用函数str( )避免类型错误时间:2023-03-09 04:46:25 age = 23 message = "Happy " + str(age) + "rd Birthday" print(message) 输出位 Happy 23rd Birthday