我收到以下错误
ValueError:无法将字符串转换为浮点数:'asdf\n'
从此代码:
import sys
print('Hello, this is a short quiz. Please tell me your name')
name = int(sys.stdin.readline())
print('Are you ready %s?' % (name))
我收到以下错误
ValueError:无法将字符串转换为浮点数:'asdf\n'
从此代码:
import sys
print('Hello, this is a short quiz. Please tell me your name')
name = int(sys.stdin.readline())
print('Are you ready %s?' % (name))