Commit 7451b3f4 by BellCodeEditor

save project

parent 82c8c45e
Showing with 22 additions and 6 deletions
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
bro1="关羽" bro1="关羽"
bro2="刘备" bro2="刘备"
bro3="张飞" bro3="张飞"
bros=["刘备","关羽","张飞"] bros=["苹果""香蕉","西瓜","刘备","关羽","张飞"]
bros[3:]
bro1=["关羽",160,8.5] bro1=["关羽",160,8.5]
bro2=["刘备",161,9.1] bro2=["刘备",161,9.1]
bro3=["张飞",166,8.3] bro3=["张飞",166,8.3]
......
name='刘备'
power=66
hero=["苹果",30,"香蕉",37,"西瓜",52,"刘备",66,"关羽",89,"张飞",98]
for i in range(len(hero)):
if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
print(hero)
\ No newline at end of file
list=["苹果""香蕉","西瓜""香蕉","桃子","香蕉"] ++ "b/\345\260\235\350\257\225.py"
list=["苹果""香蕉","西瓜""香蕉","桃子","香蕉"]
list.remove('香蕉')
print(list)
\ No newline at end of file
anme='刘备'
power=66
hero=["苹果",30,"香蕉",37,"西瓜",52,"刘备",66,"关羽",89,"张飞"98]
for i in range(len(hero)):
if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
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