python 5:str(某一变量)(将其他数字解释为字符串)
1 age = 21 2 messege = "Your's age is " + str(age) #将其他数字更改为字符串 3 print(messege)
1 运行结果应该是: 2 Your's age is 21
1 age = 21 2 messege = "Your's age is " + str(age) #将其他数字更改为字符串 3 print(messege)
1 运行结果应该是: 2 Your's age is 21