Commit 794a092a by BellCodeEditor

save project

parent 4fdcfc03
Showing with 14 additions and 1 deletions
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
小贝 29 11 11 15 13 15 13 11 11 29 13 11 小贝 29 11 11 15 13 15 13 11 11 29 13 11
李丽 13 15 20 15 15 11 17 20 20 11 12 12 20 李丽 13 15 20 15 15 11 17 20 20 11 12 12 20
宋扬 11 11 11 11 15 17 11 20 宋扬 11 11 11 11 15 17 11 20
王明 31 27 26 24 29 12 15 11 22 26 23 王明 30 27 26 24 29 12 15 11 22 26 23
李强 12 12 11 15 11 13 25 26 11 13 15 12 李强 12 12 11 15 11 13 25 26 11 13 15 12
孙小白 25 26 12 15 27 30 48 39 孙小白 25 26 12 15 27 30 48 39
苏琪 15 11 15 15 30 13 27 11 苏琪 15 11 15 15 30 13 27 11
......
n = input("几")
lst=input("请输入"+n+"个数")
num=input("请输入:")
number=0
data=lst.split
if int(n)!=len(data):
print("错误")
else:
for i in data:
if i == num:
number+=1
print(number)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment