print("the number im trying to type is" + number + ". ")
子衿沉夜
浏览 210回答 1
1回答
犯罪嫌疑人X
所以把它变成一个字符串:number = '69'number = str(69)或使用格式字符串:number = 69print("the number is {0}".format(number)) # the number is 69在这种情况下,您也可以对其进行格式化,例如:number = 69print("the number is {0:04d}".format(number)) # the number is 0069