最新 最热

python3环境搭建

安装依赖环境yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel 下载py...

2020-01-20
1

克罗内克符号kronecker_delt

[delta _{{ij}}={begin{cases}0&{text{if }}ineq j,\1&{text{if }}i=j.end{cases}}]

2020-01-20
1

多线程—卖票

题目:python3多线程import threadingimport timelist_ticket=[] #定义票池lock=threading.Lock() #获得多线程锁num=30#票数for i in range(1,num+1): #ticket_num="0"*(len(......

2020-01-20
1

Python03

python2中的input:要求输入者必须输入一个明确的数据类型,输入什么类型就存成什么类型

2020-01-19
1

Python中字典的操作

字典的基本详情字典查找速度快字典是无序的;(python3.6以上版本有序)字典支持乘加、成员检查、长度、最小值、最大值、嵌套;字典值不支持列表、元组、索引、切片、元素赋值跟切片赋值;字典通过大括号表示;字典的内容是项;项...

2020-01-17
1

python3.6以上 asyncio模

https://www.cnblogs.com/dhcn/p/9032461.html

2020-01-17
1

file.seek()/tell()-笔

-------------------------------------------------------------------------------------------------------------------------

2020-01-17
1

python3通过os模块统计指定目录下

代码:import ospath = r"C:UsersAdministratorDesktop***"print('filenum:',len([lists for lists in os.listdir(path) if os.path.isfile(os.path.join(path, list...

2020-01-17
1

(Python3) 连加 连乘 代码

a=[1,2,3,4,5,6,7,8,9,10]#连加b=0for i in a:  b+=iprint(b)#连乘c=1for i in a:  c*=iprint(c)

2020-01-17
1

python3爬虫-通过requests

import requestsfrom fake_useragent import UserAgentfrom lxml import etreefrom urllib.parse import urljoinimport pymysqlimport timeua = UserAgent()clas...

2020-01-16
1