anaconda 下用 vs codes 执行input()函数,
会自动输入一个地址F:/Anaconda/Scripts/activate
不论()里写什么都是一样
这什么奇怪的问题啊!!小白一脸懵逼………………
x = 1
kk = 0
while float(x) != -1:
x = input('input:')
num = str(kk)
head = 'SORT' + num
kk += 1
print(head)
float(x) 要求x是一个数字或数字组成的字符串,你输入其他字符肯定是拨错的