我在Windows 7机器上安装了python 3.5.当我安装它时,我标记了要安装的复选框pip.在安装之后,我想检查pip是否正常工作,所以我pip在命令行输入并按Enter键,但没有响应.光标闪烁但不显示任何内容.
请帮忙.
问候.
我有一个如此处所示的列表. a=[1936,2401,2916,4761,9216,9216,9604,9801]
我想获得更多重复的值.在这里它是'9216'我怎么能得到这个值?谢谢
代码从count=0计数 = 9 开始工作。然后它不会进入其他 elif 代码。我在下面评论了哪个部分不起作用。我已经通过检查计数的值尝试了很多次,但我仍然找不到代码不起作用的原因
count =0
for line in sys.stdin:
line = line.strip()
print(count)
if (count==0):
a = int(line) #no of series
count=1
elif(count==1): #2nd line 2 players 3 mtches
plyrs_mtchs=[]
plyrs_mtchs= line.split()
print(plyrs_mtchs)
count+=1 # #no of players , no of matches
elif(count==2 or count==6):
players.append(str(line))
print(players)
count+=1
elif(count==3,5 or count==7,9):
currenplyr = players[len(players)-1]
predict.append(line.split())
count+=1
elif(count==10 or count==11): #this code doesn't work
actual.append(line.split())
count+=1
elif(count==12): #this code doesnt work
actual.append(line.split())
count+=1
Run Code Online (Sandbox Code Playgroud)