40、以下程序模拟了用户登录功能,当用户输入的用户名和密码分别为noc2024和123456时,输出'登入成功',否则输出'登入失败'。
- username = input('请输入用户名:')
- password = input('请输入密码:')
- if username == 'noc2024' and password == _____:
- print('登入成功')
- else:
- print('登入失败')
40、以下程序模拟了用户登录功能,当用户输入的用户名和密码分别为noc2024和123456时,输出'登入成功',否则输出'登入失败'。
- username = input('请输入用户名:')
- password = input('请输入密码:')
- if username == 'noc2024' and password == _____:
- print('登入成功')
- else:
- print('登入失败')
Scratch3.0 全国青少年软件编程等级考试 Python Scratch图形化一级 Scratch图形化四级 Scratch图形化三级 Scratch图形化二级 电子学会