【发布时间】:2016-02-25 18:57:24
【问题描述】:
print("Welcome")
barcode1 = input("Please enter your first digit")
barcode2 = input("Please enter your second digit")
barcode3 = input("Please enter your third digit")
barcode4 = input("Please enter your fourth digit")
barcode5 = input("Please enter your fifth digit")
barcode6 = input("Please enter your sixth digit")
barcode7 = input("Please enter your seventh digit")
barcode1 = barcode1*3
print(barcode1)
不是将数字乘以 3,而是得到 111
【问题讨论】:
-
请在您的问题中添加更多详细信息。你在纠结什么?
-
您能否阅读编辑并格式化您的问题?
-
barcode1 的输入是什么?
-
输入是 1,我在某处读到它是 111,因为它是一个字符串而不是整数,但我不知道如何更改它
-
@LPK 抱歉忘记给你加标签