笨小白学python记 day_1(作监督自己学习之用)

来源:互联网 发布:苹果cydiapp助手源码 编辑:程序博客网 时间:2024/06/06 11:37

Alex作业之day 1 的homework2

the requies of homework2
1:import username、password;
2:show welcome message after successful landing
3:exit after three times of wrong transmission

代码:

#day 1 homework 2name='what are you' #字符串用符号''password='your father'counter=0for i in range(10):#from zero to ten    if counter<3:        name_in=input("import your name:")        password_in=input("import your password:")        if name_in==name and password_in==password:            print("欢迎您登入!!!")            break    else:        print("您是盗号的吧!")        break    counter+=1

存在问题:
1:I cannot use the function of getpass in Jupyter Notebook of Anaconda3;
2:The version of my python is 3.6

—————the beautiful cut-off rule———–
1:英文主要起练习自己英文能力之用.PS:英文不好请见谅!;
2:笨小白+乌龟速度,but I enjoy it;

原创粉丝点击