liangzhiwen

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2018年8月21日

摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>创建元素</title> <style type="text/css"> #total { font-size: 14px; font-weight: bold; text-alig 阅读全文
posted @ 2018-08-21 22:09 liangzhiwen 阅读(250) 评论(0) 推荐(0) 编辑

2018年8月6日

摘要: # 主程序运行 import time from guanli import GuanLi from atm import ATM from user import User def main(): guanli = GuanLi()# 创建一个管理对象 guanli.welcome() # 欢迎界面 guanli.caozuo() # 管理员登陆验证 ... 阅读全文
posted @ 2018-08-06 22:43 liangzhiwen 阅读(255) 评论(1) 推荐(0) 编辑

2018年7月25日

摘要: lt = ["a","ab","abc","abcd","abcde"]lt1 = list(filter(lambda x:type(x)==str and len(x)>3,lt))print(lt1) 阅读全文
posted @ 2018-07-25 21:56 liangzhiwen 阅读(177) 评论(0) 推荐(0) 编辑

2018年7月24日

摘要: def he (n): if n < 3 : return 1 return he(n-1)+he(n-2)print(he(n)) 阅读全文
posted @ 2018-07-24 22:10 liangzhiwen 阅读(147) 评论(0) 推荐(0) 编辑

摘要: def chengji(n): if n == 0: return 1 return chengji(n-1)*nprint(chengji(n)) 阅读全文
posted @ 2018-07-24 22:09 liangzhiwen 阅读(221) 评论(0) 推荐(0) 编辑

2018年7月23日

摘要: import sysdef lt(a, b, c ): if b == "+": return int(a)+int(c) elif b == "-": return int(a)-int(c) elif b == "*": return int(a)*int(c) elif b == "/": r 阅读全文
posted @ 2018-07-23 20:28 liangzhiwen 阅读(281) 评论(0) 推荐(0) 编辑

摘要: lt = [ {'name':'小王', 'age':18, 'info':[('phone', '123'), ('dizhi', '广州')]}, {'name':'小芳', 'age':19, 'info':[('phone', '789'), ('dizhi', '深圳')]}, {'nam 阅读全文
posted @ 2018-07-23 08:47 liangzhiwen 阅读(316) 评论(0) 推荐(0) 编辑