Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.4 流程控制 #13

Open
request101 opened this issue Jun 3, 2019 · 0 comments
Open

1.4 流程控制 #13

request101 opened this issue Jun 3, 2019 · 0 comments

Comments

@request101
Copy link

request101 commented Jun 3, 2019

Username=str(input('请输入用户名:'))
password=int(input('请输入密码:'))
if(Username=='seven'):
    if(password==123):
        print("登陆成功!")
    else:
        print("登陆失败!")

i=2
sum=0
while(i<=100):
    if(i%2==0):
        sum+=i
    else:
        sum-=i
    i+=1
print(sum)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant