码迷,mamicode.com
首页 > 其他好文 > 详细

day13 3.27

时间:2017-03-27 13:23:33      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:bigger   div   and   got   word   log   put   csharp   passwd   

1.密文密码  getpass.getpass

name = input("please input your name: ")
passwd = getpass.getpass("please input your passwd: ")

if name == "alex" and passwd ==  "123456":
    print("welcome alex")
else:
    print("Wrong username or password")

2. int str

age = 56
guess_age = int(input("please input age: "))

if guess_age > age:
    print("try smaller...")
elif guess_age < age:
    print("try bigger..")
else:
    print("you got it!")

  

day13 3.27

标签:bigger   div   and   got   word   log   put   csharp   passwd   

原文地址:http://www.cnblogs.com/oyoui/p/6626110.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!