Commit 25cb5307 by BellCodeEditor

save project

parent a9e110fc
Showing with 19 additions and 14 deletions
bro1="关羽" if score > there:
bro2="刘备" if score>one:
bro3="张飞" record["第1名"]=score
bros=["刘备","关羽","张飞"] record["第2名"]=oen
bro1=["关羽",160,8.5] record["第3名"]=two
bro2=["刘备",161,9.1] elif score > two:
bro3=["张飞",166,8.3] record["第2名"]=score
bros[0]="关羽" record["第3名"]=two
bros[1]="刘备" else:
print(bros) record["第3名"]=score
a=["华雄"] record=json.dumps(record,ensure_ascii=False)
b=["袁术","夏侯惇","曹操","关羽"] with open("record.txt","w",encoding='utf-8') as f:
b.remove("关羽") f.write(record)
print(b)
import json
record={"第1名":91,"第2名":88,"第3名":85}
text=json.dumps(record,ensure_ascii=False)
print(text)
\ 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