Is it possible to make the type of raw_input an integer or string depending on the input itself?

前端 未结 0 1824
名媛妹妹
名媛妹妹 2020-12-03 15:06

I\'m trying to make a number guessing game in which the user guesses the number. Ideally, I\'d like to take both the integer and string version of the number as valid answer

相关标签:
回答
  • 消灭零回复
提交回复
热议问题