# 写代码# 实现用户输入用户名和密码,当用户名为seven且密码为123时,显示登录成功,否则登录失败。 username = input("Please enter your username: ")password = input("Please enter your password: ") if username == "seven" and password == "123": print("login successful.")else: print("login failed.")
原文地址:https://www.cnblogs.com/demilyc/p/9975707.html
时间: 2024-11-06 15:51:56