![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
玩python
不服输的南瓜
这个作者很懒,什么都没留下…
展开
-
python之getpass简单实现账号登陆
今天无意中发现python的getpass模块,就简单写了一下登录一个软件的代码: getpass.getpass(‘提示字符串’):会显示提示字符串, 关闭键盘的屏幕回显,然后读取密码,即密码不显示。 import getpass count = 0 while count < 5: username = input("usename:") password = getpa...原创 2019-07-14 00:10:32 · 269 阅读 · 0 评论 -
python实现简单购物车
things = [ ("p30",3000), ("iphone",5000), ('xiaomi',2000), ('bike',800) ]原创 2019-07-17 10:46:10 · 197 阅读 · 0 评论 -
python实现验证码登陆
import random def creat(): ''' 生成四位验证码 ''' checkcode = "" for i in range(4): current = random.randrange(0,4) if current == i: tmp = chr(random.randint(6...原创 2019-07-28 11:44:04 · 1483 阅读 · 0 评论