焦飞 焦飞
4年前
快速排序Python
pythondefpartition(arr,low,high):ilow1pivotarrhighforjinrange(low,high):ifarrj<pivot:ii1arri,arrjarrj,arriarri1,arrhigharrhigh
Stella981 Stella981
3年前
Python常用模块
一、什么是模块? 常见的场景:一个模块就是一个包含了python定义和声明的文件,文件名就是模块名字加上.py的后缀。  但其实import加载的模块分为四个通用类别:   1使用python编写的代码(.py文件)  2已被编译为共享库或DLL的C或C扩展  3包好一组模块的包  4使用C编写并链接到
Stella981 Stella981
3年前
Selenium+python
跟着悠悠学coding:utf8fromseleniumimportwebdriverdriverwebdriver.Firefox()driver.get("https://www.baidu.com")<inputid"kw"class"s_ipt"type"text"autocomplete"off"ma
Stella981 Stella981
3年前
CGAL Python Bindings
CGALPythonBindingsWARNING:Thisproject(http://cgalpython.gforge.inria.fr/(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fcgalpython.gf
Stella981 Stella981
3年前
Python链接MySQL
MySQLdb(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fpypi.python.org%2Fpypi%2FMySQLpython%2F1.2.4) isanativedriverthathasbeendevelopedandsupportedfor
Stella981 Stella981
3年前
Python Ethical Hacking
TypicalNetwork!(https://img2018.cnblogs.com/blog/347404/201908/347404201908170940151631506710503.png)ARPSpoofing!(https://oscimg.oschina.net/oscnet/bb20c8d2198089b77f
Stella981 Stella981
3年前
Python并发编程
importtimefrommultiprocessingimportProcessimportosdeffunc(args,args2):传递参数到进程print(args,args2)time.sleep(1)print('子进程:',os.ge
Stella981 Stella981
3年前
Python函数(二)
位置参数根据位置顺序来传递参数coding:utf8__author__"MuT6Sch01aR"deftest(a,b):a和b为形参print(a)print(b)return0
Stella981 Stella981
3年前
Python基础(七)
1模块函数1.1模块函数模块函数指的是模块中的函数,模块函数有三种:内置模块:又叫标准库.第三方开源模块:可以通过包管理工具进行安装.自定义模块.1.2导入导入方法主要有三种:1.2.1importmoudleimportmath
Stella981 Stella981
3年前
Python基础(三)
1.listlist是一种可变的有序容器,每个元素都拥有自己的下标.列表使用\\定义.(1)定义方法x1,2,3第一种,使用yx第二种,赋值ylist({1,2,3})第三种,使用强制转换函数(2)下标下标从0开始,允