004 改进我们的小游戏——课后作业提问
本帖最后由 ssa357 于 2020-2-20 18:59 编辑课上讲的是 temp=input("输入一个数字:"),为什么到了下图,提问用print显示,而input后面是空值?
求解答,谢谢!
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA6kAAACxCAYAAAAmsvvYAAAgAElEQVR4nO3dLazrRt7H8WpVqe3ubS8oqPSQXVZ2Ycu6Wq1ULSkoKKoWdtAuq7QgkQoKS6KaFRZWCqiMCm+YWdHmQrMtqS489/XMAxLn2M68/OfF9iTnCz6698Rv4/HEnl88cd74/fff9SX43//+p//73//qm5ubaE2ltFJDVRO/PgAAAABAXm8sHT7nDKkAAAAAgLIRUgEAAAAAxSCkAgAAAACKQUgFAAAAABSDkAoAAAAAKAYhFQAAAABQDEIqAAAAAKAYhFQAAAAAQDEIqQAAAACAYhBSAQAAAADFIKQCAAAAAIpBSEU2Sqmoaf15fFLWL93+FPufe1nb/DFlWGKfcxyvnOtZehs5yzCeN1fbil2uhPq7BksfF+n8Ief6pev0kuU4fnOdV2Lb4FLnMgBlIKTiRBoOY8KitOMSO70/LSToSl6XhOSQ/cyxrK1cc5a5W27qjkNsWzRNX+oDkFRLdSZD6ipnm4Ts+Etel/x/7na0dH0ufSylYtuFdN5c5xXpOaF/zZCeU6Zqg7RFoHyE1KvV6Eqtdd2OX6t0Y1lG2pkJuaj4XjetN3eQiJnmu6CHdDQknfaQ/e5f6CXHL7SOJRfv0M5Dzo5ZTLuKXTZkvqnYjnfIsYnpEOYoo6RNwl+3Me+Z8TGZ4j0b0gaXrse8wq+vrrqY8nrj20auc36u66xvG1OfywCUIzmk7ja9E8Zqq/fdtP1Wrywnz81uuZDa1mu9rlt9c9Pqeq101cxd6YftKsHFLHUbh/0833/btvsn/f6/0pDkkhImXNNjL86+aZJOQ8gxmWpZ17HI/VpMnYXuc8h8qSHXV17X+lO2G3vsQ8sce7xT2mdMmyxFW6+1Wte6lS7TVFqp4zWk//8Jl48NH6Z26mq/uY/dfMe93OtrzDG0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AADA0mYMqQz3bar+MM9xUPGH1OHyx7970313CdPuIg7DV1LQbSprSO2HxvH+Sfahqdzhz7W8s36b6vSBQhd4u6Da/5ChXx+u75+29ZohvwAAAIDBTCHV9XCl+xJSDyGvH+iGQcUXUg1Pqx0NGz2EIs9Q1xKGmTpCqu9Osjuk+u9Q2pf31G+vzHfrOA+pw8Buf8JwEcOOAQAAgALNElJ3G3V4wNI+fhuXH1IT76S2tV5Lh7s6hgP7ptvNcyd1sZDqq9/okGquH0IqAAAAYDZ5SN1vV8kB9apCaj8ADYZ7SkJqyF1Q31NkF3zKbLEh1VG/MSHVsU6G+wIAAABmk4ZUUUDdb/VK+YcCX35ItQ/9PBiFxu7O3ilQhYfK8XcsQ6dPJiGkHpZNeHqvdXlP/UaEVHv98uAkAAAAwCYhpHbfMx3rQunhQUmm4aF3v516n0Kq5Qmz/UA1GHJa6eYspBmeDjx+sJJt3YLp0zI/2fj86bi9ZUwh9Ww/TN8jdQ9Bti/vqF9hSLXfKR+XsYDvBgMAAAAFynMndQYXH1KNweTwnUXuqOVleirw9EzfSbXPxzEHAAAAzAipczENMxXc9UOMJb5vKwupPDAJAAAAcCOkzuhsuC0BdUK+7wDnJgmpja4sv5sKAAAA4ICQCgAAAAAoBiEVAAAAAFAMQioAAAAAoBiEVAAAAABAMQipAAAAAIBiEFIBAAAAAMUgpAIAAAAAikFIBQAAAAAUg5AKAAAAACgGIRUAAAAAUAxCKgAAAACgGIRUANGUUpPMK11uju0vUVeXKOf+5Tiu117fAABcM0IqcM8opcSk68s5n3S57vUSg6ppO1NvO+S42o5v6rK+dYXUXepxjVkPAAAoAyEVuGekAWqKEBO6nG2aab7YfZ+rnksJS6F3pmNfi9n/kGV8bcjVXgAAQNn+HwlV7+nIGOxxAAAAAElFTkSuQmCC
上代码,上图 代码呢? 发代码 ba21 发表于 2020-2-20 19:15
上代码,上图
print("不妨猜一下小甲鱼现在心里想的是哪个数字:", end=" ")
while (guess != secret) and (times > 0):
temp = input()
guess = int(temp)
times = times - 1 # 用户每输入一次,可用机会就-1
你好,代码如上 zltzlt 发表于 2020-2-20 20:33
发代码
print("不妨猜一下小甲鱼现在心里想的是哪个数字:", end=" ")
while (guess != secret) and (times > 0):
temp = input()
guess = int(temp)
times = times - 1 # 用户每输入一次,可用机会就-1
你好,代码如上 zltzlt 发表于 2020-2-20 20:33
发代码
print("不妨猜一下小甲鱼现在心里想的是哪个数字:", end=" ")
while (guess != secret) and (times > 0):
temp = input()
guess = int(temp)
times = times - 1 # 用户每输入一次,可用机会就-1
你好,代码如上 ssa357 发表于 2020-2-20 20:35
print("不妨猜一下小甲鱼现在心里想的是哪个数字:", end=" ")
while (guess != secret) and (times > 0 ...
这里 print() 起到的作用是打印字符串,input() 才是询问用户输入(input() 中有参数则先打印参数,没有就直接询问用户)。
页:
[1]