- 创建 .idea 目录和相关配置文件,设置项目结构 - 添加多个课堂成果示例代码,涵盖不同主题和功能 - 创建和配置 .gitignore 文件,忽略特定文件和目录
14 lines
477 B
Python
14 lines
477 B
Python
while True:
|
||
username = input('请输入您的代号:')
|
||
password = input('请输入您的密码:')
|
||
|
||
# 检查用户名和密码是否正确
|
||
if username == '007' and password == '妈咪妈咪哄':
|
||
print('登录成功!')
|
||
break
|
||
if username != '007':
|
||
print('代号错误!请重新输入')
|
||
continue
|
||
if password != '妈咪妈咪哄':
|
||
print('密码记错了吧!请重新输入')
|
||
print('特工007,欢迎回家') |