随笔分类 -  Python

摘要:1. 前言 python 中的数组可以说是本人最常用的数据结构了,其中一些方法总是忘记,再次做一下总结。 2. 如何查看某个数据结构的方法 Python 3.9.9 (main, Dec 2 2021, 14:30:08) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44) 阅读全文
posted @ 2022-03-23 17:14 恩赐解脱ゞ 阅读(1226) 评论(0) 推荐(0) 编辑
摘要:r r"" 的作用是去除转义字符. 即如果是“\n”那么表示一个反斜杠字符,一个字母n,而不是表示换行了。 以r开头的字符,常用于正则表达式,对应着re模块。 >>> str = 'hello\n' >>> str_r = r'hello\n' >>> print(str) hello >>> pr 阅读全文
posted @ 2021-08-31 10:21 恩赐解脱ゞ 阅读(960) 评论(0) 推荐(0) 编辑
摘要:#epoll发展进程 ~此处添加一下select、poll历程及其优缺点~~ #原理 #使用步骤 Create an epoll object——创建1个epoll对象 Tell the epoll object to monitor specific events on specific sock 阅读全文
posted @ 2020-12-14 16:29 恩赐解脱ゞ 阅读(555) 评论(0) 推荐(0) 编辑
摘要:原文地址 一、datetime模块介绍 (一)、datetime模块中包含如下类: 类名功能说明 date 日期对象,常用的属性有year, month, day time 时间对象 datetime 日期时间对象,常用的属性有hour, minute, second, microsecond da 阅读全文
posted @ 2020-11-24 11:07 恩赐解脱ゞ 阅读(175) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示