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

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 2
name='what are you' #字符串用符号''
password='your father'
counter=0
for 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;

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值