• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






测试小胖胖

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  python

 
python实现简易的进度条
摘要:1 import sys,time 2 3 for i in range(50): 4 sys.stdout.write('#') 5 sys.stdout.flush() 6 time.sleep(0.5) 阅读全文
posted @ 2017-07-06 22:26 测试小胖胖 阅读(123) 评论(0) 推荐(0)
购物程序
摘要:shoplist = [] product_list = [ ('computer',5000), ('apple',50), ('book',42), ('iphone',6800) ] salary = input("输入您的工资:") if salary.isdigit(): salary = int(salary) while True: ... 阅读全文
posted @ 2017-06-30 22:31 测试小胖胖 阅读(115) 评论(0) 推荐(0)
进入一个菜单,一共可以选择三级
摘要:__author__ = "Alex Li" data = { '北京':{ "昌平":{ "沙河":["oldboy","test"], "天通苑":["链家地产","我爱我家"] }, "朝阳":{ "望京":["奔驰","陌陌"], "国... 阅读全文
posted @ 2017-06-30 22:29 测试小胖胖 阅读(165) 评论(0) 推荐(0)
最近开始努力学python 写了一个python小代码:判断一个登陆程序,如果账号密码输错3次,锁定账号无法再登陆
摘要:1 count = 0 2 username = 'zhangsan' 3 userpassword = '111111' 4 5 f = open('lock.txt','r+') 6 file_list = f.readlines() 7 f.close() 8 #打开文件夹 读取数据 9 10 name = input("请输入用户名:") 11 12 if n... 阅读全文
posted @ 2017-06-28 21:37 测试小胖胖 阅读(459) 评论(0) 推荐(0)