Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / lesson7_3

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • lesson7_3
  • dgdfyg.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 9a36be95
    BellCodeEditor committed a year ago
    9a36be95
dgdfyg.py 284 Bytes
1 2 3 4 5 6 7 8 9
name=input('12345?')
power=int(input('67890'))
hero=['这样',30,'刚刚',37,'涵涵',52,'和分发给',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)
        break
print(hero[-6:])