![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码练习
幻嘤剑舞
少壮不努力,
后跳带剑气。
展开
-
python学习手册第一章部分代码练习
def spliting(): print(’-’*60) import math print(math.pi) # 3.141592653589793 print(math.sqrt(4)) # 2 import random print(random.randint(1,10)) print(random.choice([1,2,3,4])) spliting() s = ‘lux’ prin...原创 2019-06-29 08:29:14 · 143 阅读 · 0 评论 -
什么鬼购物车
#仓库类 class Repository(): l = {‘屠戮之刃’:[3900,20], ‘无影剑-艾雷诺’:[3788,22], ‘子午七星剑’:[3899,19], ‘剑神梁月的钝剑’:[3688,22]} def add(self, one): if list(one.name.keys())[0] not in Repository.l: Repository.l[list(one...原创 2019-07-24 08:13:23 · 132 阅读 · 0 评论