任何人都可以帮助我如何接受下面问题中描述的输入(提供的链接)。我只想知道输入部分在Python 3.7语言中的实现。请不要分享您对主要问题的回答或逻辑。
最佳答案
while True:
try:
value = int(input()) # Bytelandian coins can only have integer values.
except:
break
# your code to find and print the dollars you can make for a coin worth 'value' goes here
...
关于python - 如何在 SPOJ 问题硬币中使用 Python 输入?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55340374/