随笔分类 - Python
摘要:求100以内fabonacci sequence
阅读全文
摘要:使用*的时候,简单类型和复杂类型存在区别,复杂类型仅是复制引用地址 上面出错的原因为dict.update(k=v)中k必须是变量,不能是字符串,这个变量会被转换成字符串
阅读全文
摘要:安装编译器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.
阅读全文
摘要:pip documentation v22.0.3 (pypa.io) configuration: https://pip.pypa.io/en/stable/topics/configuration/ pip: package installer for Python file name con
阅读全文
摘要:升级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/
阅读全文
摘要:module random random.random() [0,1) 内的float pseudo randomizer random.sample() sample(population,k) method of random.Random instance,choose k unique ra
阅读全文
摘要: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-
阅读全文
摘要:杨辉三角 解法: 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
阅读全文