![](https://img-blog.csdnimg.cn/2019091813595558.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
python
文章平均质量分 84
python基础学习 为python测开准备
听说西佳佳难得很
要学的有好多……
是自己的功课,在这里没有必要欺骗自己,要好好弄懂在记录的知识点。感受到孤单的时候也要向前,努力成为最完善,最有力,最强大的自己。
展开
-
Python6:Socket编程初步学习笔记
server.accept()的返回值是一个新的socket连接和连接的客户端地址,怎么判断判断是否连接成功,我们可以在连接之后打断点,并在命令行查看是否监听,用。但目前TCP(IPV4)是主流,SOCK_STREAM+AF_INET。socket模块中有socket类: socket.socket。server只做一个事情,就是用来监听并创建新的连接。发送信息由客户端发送,conn用来接收并发送返回信息。2 执行测试用例(测试失败-红。4 执行测试用例(测试成功-绿。通信:传递二进制数据流。原创 2024-03-24 00:23:41 · 544 阅读 · 0 评论 -
python5:基于多进程的并发编程、基于协程的并发编程的学习笔记
python协程学习笔记原创 2024-03-22 15:39:48 · 807 阅读 · 0 评论 -
python4:基于线程的并发编程
python线程 多线程 基础了解原创 2024-03-21 11:09:06 · 575 阅读 · 0 评论 -
python学习2:日志记录的用法
python日志学习原创 2024-03-14 09:23:02 · 866 阅读 · 1 评论 -
python学习1:csv模块、time模块、random、jieba、worldcloud、pycharm的虚拟环境认识、black格式化文件
python学习原创 2024-03-12 21:50:30 · 596 阅读 · 0 评论 -
Python中if __name__ == ‘__main__‘:的作用和原理
if name == ‘main’:的作用一个python文件通常有两种使用方法,第一是作为脚本直接执行,第二是 import 到其他的 python 脚本中被调用(模块重用)执行。因此 if name == ‘main’: 的作用就是控制这两种情况执行代码的过程,在 if name == ‘main’: 下的代码只有在第一种情况下(即文件作为脚本直接执行)才会被执行,而 import 到其他脚本中是不会被执行的。举例说明如下:直接执行直接执行 test.py,结果如下图,可以成功 print转载 2021-10-31 17:37:26 · 678 阅读 · 0 评论 -
Panda Fundamental
NumPy provides fundamental structures and tools that makes working with data easier, but there are several things that limit its usefulness as a single tool when working with data:· The lack of suppo...原创 2019-03-18 22:31:22 · 167 阅读 · 0 评论 -
data analysis --python on Jupyter
data cleaning (data analysis 第一步)1. detect and delete wrong data1.find the wrong data and make sure the data indeed wrong, if so use del statement to delete itFor instance, remove the row with the ...原创 2019-03-12 15:48:06 · 238 阅读 · 0 评论 -
Python--Working with date and times(待整理…strftime不清楚)
1.modules working with dates and timesThe calendar moduleThe time moduleThe datetime modulefocus on datetime first:datetime.datetime - For working with date and time datadatetime.date - For wo...原创 2019-03-16 14:08:24 · 162 阅读 · 0 评论 -
Jupyter Notebook(1) --a must-have tool
一. looks like this1.some shortcut:shift+enter :run the code and select another below;Ctrl + enter: only run the code without inserting new cell;alt + enter: run the code and no matter what situat...原创 2019-03-11 14:46:32 · 184 阅读 · 0 评论 -
python学习笔记
第一章 python基础一.python 不用定义变量类型,不用分号分开语句,直接分行二. round()1.连续输入多行round(),最后只输出最后一行2.round()不改变原值三. Strings"\保护字符串中的引号“r“ 在字符串前输入r 可以避免将斜杠\作为特殊符号"…"连接两行 或者”\“四.lists当数据量很大时,可以直接读取文件,再将...原创 2019-03-11 10:25:13 · 84 阅读 · 0 评论 -
Object-Oriented Python
1.define an empty classuse pass to avoid error, python doesn’t let us define classes or functions when they are empty2. 类中函数的第一个参数总是对象本身,写作self3. attributesThe power of objects is in their abili...原创 2019-03-14 20:32:15 · 225 阅读 · 0 评论 -
how to clean data using Python (string part)
1. substringstr.replace() : find and replacefav_color = "red is my favorite color"fav_color = fav_color.replace("red", "blue")print(fav_color)输出:原创 2019-03-14 11:09:17 · 320 阅读 · 0 评论