摘要: 一 Regular Expression A RegEx, or Regular Expression, is a sequence of characters that forms a search pattern. RegEx can be used to check if a string c 阅读全文
posted @ 2021-01-06 20:32 fengshili0721 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 一 包 package Packages are a way of structuring Python’s module namespace by using “dotted module names” A package is a collection of Python modules, i. 阅读全文
posted @ 2021-01-05 18:29 fengshili0721 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 一 modules definition 定义 A module is a Python object with arbitrarily/ˌɑːrbɪˈtrerəli/ (任意地) named attributes(属性) that you can bind and reference. Simpl 阅读全文
posted @ 2021-01-04 17:56 fengshili0721 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 一.三元表达式 Ternary operator Ternary operators also known as conditional expressions are operators that evaluate something based on a condition being true 阅读全文
posted @ 2021-01-01 08:09 fengshili0721 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 一 装饰器 Decorator A decorator is a design pattern in Python that allows a user to add new functionality to an existing object without modifying its stru 阅读全文
posted @ 2020-12-30 17:12 fengshili0721 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 一 函数对象 function objects One of the most powerful features of Python is that everything is an object, including functions. Functions in Python are firs 阅读全文
posted @ 2020-12-29 20:50 fengshili0721 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 一 函数 function A function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function. A function can 阅读全文
posted @ 2020-12-28 13:28 fengshili0721 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 一 字符编码中pyrhon的应用 Encoding in python 如何保证不乱码 use UTF-8(Most ide solve this problem for us) use'# coding="gbk"' at the first line of the program 如何在pyth 阅读全文
posted @ 2020-12-25 15:18 fengshili0721 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 一 集合 Sets 1.定义 Definition Sets are used to store multiple items in a single variable. Set items are unordered, unchangeable, and do not allow duplicat 阅读全文
posted @ 2020-12-24 21:36 fengshili0721 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 一 列表补充 Lists 需要掌握的其它命令 index Returns the index of the first element with the specified value count Returns the number of elements with the specified v 阅读全文
posted @ 2020-12-23 16:41 fengshili0721 阅读(119) 评论(0) 推荐(0) 编辑