python怎么一直循环_python 基础之while无限循环
用户登录程序username = "chenxi"passwed = "testki"counter = 0while counter < 3: # 测试3次user = input("输入用户名:")passw = input("输入密码:")if user == username and passw == passwed :print("登录成功")break #退出else:prin