随笔分类 -  Python

上一页 1 ··· 3 4 5 6 7
摘要:求100以内fabonacci sequence 阅读全文
posted @ 2020-07-15 21:19 ascertain 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-12 10:34 ascertain 阅读(93) 评论(0) 推荐(0) 编辑
摘要:使用*的时候,简单类型和复杂类型存在区别,复杂类型仅是复制引用地址 上面出错的原因为dict.update(k=v)中k必须是变量,不能是字符串,这个变量会被转换成字符串 阅读全文
posted @ 2020-07-07 12:50 ascertain 阅读(127) 评论(0) 推荐(0) 编辑
摘要:安装编译器yum install gcc gcc-c++ 安装连接器yum install mesa-libGL-devel mesa-libGLU-devel freeglut-devel wget http://download.qt.io/official_releases/qt/5.9/5. 阅读全文
posted @ 2020-06-15 18:54 ascertain 阅读(1891) 评论(0) 推荐(0) 编辑
摘要:pip documentation v22.0.3 (pypa.io) configuration: https://pip.pypa.io/en/stable/topics/configuration/ pip: package installer for Python file name con 阅读全文
posted @ 2020-06-12 18:41 ascertain 阅读(1444) 评论(0) 推荐(0) 编辑
摘要:升级openssl: wget https://www.openssl.org/source/openssl-1.1.1a.tar.gz tar xvzf openssl-1.1.1a.tar.gz --directory /usr/local/src ./config --prefix=/usr/ 阅读全文
posted @ 2020-06-12 16:32 ascertain 阅读(203) 评论(0) 推荐(0) 编辑
摘要:module random random.random() [0,1) 内的float pseudo randomizer random.sample() sample(population,k) method of random.Random instance,choose k unique ra 阅读全文
posted @ 2020-06-08 22:30 ascertain 阅读(455) 评论(0) 推荐(0) 编辑
摘要:intermittent import timedef bid(f): def bow(*args,**kwargs): with open('p.txt',encoding='utf-8',mode='a') as dam: dam.write('\n'+time.strftime('%Y-%m- 阅读全文
posted @ 2020-06-08 22:28 ascertain 阅读(363) 评论(0) 推荐(0) 编辑
摘要:杨辉三角 解法: triangle=[]p=int(input('>>>'))for i in range(0,p): if i == 0: triangle.append([1]) else: current=[1] for j in range(0,i-1): current.append(tr 阅读全文
posted @ 2020-06-08 22:14 ascertain 阅读(600) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7
点击右上角即可分享
微信分享提示