Commit 0ca16b87 by BellCodeEditor

save project

parent cc43ca29
name=input('你叫啥名啊?')
power=int(input('你臂力多少啊?'))
list_hero=['猴三',10,'猴一',21,'猴五',22,'猴队长',29,'猴七',30]
for i in range(len(list_hero)):
if i%2==1 and list_hero[i]>=power:
list_hero.insert(i-1,name)
list_hero.insert(i,power)
break
print(list_hero)
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30,}
print(dict_hero)
with open(r"C:\Users\61936\Desktop\新建 文本文档.txt",'r',encoding='utf-8') as jj:
a = jj.readlines()
print(a)
#print(jj.read())
#jj.write('🐖jjj🐖jjj🐖\n')
#jj.write('📕jjj📕jjj📕\n')
#jj.write('🐀jjj🐀jjj🐀\n')
\ No newline at end of file
小强:11本
小强:11本
李明:15本
小兰:12本
小丽:11本
李文:9本
张伟:16本
😀😀😀
😀😀😀
🐖🐖🐖
📕📕📕
🐀🐀🐀
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