TypeError: unsupported operand type(s) for +: 'int' and 'NoneType' in last line

后端 未结 0 428
不思量自难忘°
不思量自难忘° 2020-12-11 05:59
def number():
    while True:
        try:
            x=float(input())
            print("Enter a number: "+ str(x))
        except ValueError:
                   


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