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

bellcode / lesson3-5-2_DIY1

  • 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
Commit f59114e1 authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent c402327c c102438l762p219a8142/wx457096
Hide whitespace changes
Inline Side-by-side
Showing with 7 additions and 2 deletions
  • bug.py
bug.py
View file @ f59114e1
i = 5 i = 3
username = "LuoXu20081102" username = "LuoXu20081102"
userpassword ="123456" userpassword ="123456"
while True: while True:
...@@ -10,10 +10,14 @@ while True: ...@@ -10,10 +10,14 @@ while True:
break break
if username != name: if username != name:
print("没你这个账号") print("没你这个账号")
i = i-1
print("只有"+str(i)+"次机会了")
continue continue
if userpassword != password: if userpassword != password:
print("密码不对") print("密码不对")
i = i-1
print("只有"+str(i)+"次机会了")
else: else:
print("锁定...") print("锁定...")
exit exit()
print("冠城七中需要你这样的人才") print("冠城七中需要你这样的人才")
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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