Commit 61d9a47c by BellCodeEditor

auto save

parent 25abb509
Showing with 16 additions and 3 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳 scores=input()
print("玩家出拳:"+player) list=scores.split(",")
\ No newline at end of file list.sort() # 升序,从小到大排列
list.pop(0) # 去掉最低分
list.pop() # 去掉最高分
num=0
for i in list:
num+=int(i)
print("%.2f"%(num/6))
'''
ch="hello my name is Xu Zhengjia"
new=ch.split(' ')
print(new)
'''
\ 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