问题描述
我不知道为什么在这种情况下该异构数字不起作用。基本上,如果它是一个数字,我想在另一个函数中考虑它。
# finish user input function
def userInput(prompt=('Enter a num: \n')):
userInput = int(input(prompt))
if userInput.isnumeric() == True
print('Char is numeric')
else:
print('Char is not numeric')
userInput()
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)