摘要:
一 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 阅读全文
摘要:
一 包 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. 阅读全文
摘要:
一 modules definition 定义 A module is a Python object with arbitrarily/ˌɑːrbɪˈtrerəli/ (任意地) named attributes(属性) that you can bind and reference. Simpl 阅读全文
摘要:
一.三元表达式 Ternary operator Ternary operators also known as conditional expressions are operators that evaluate something based on a condition being true 阅读全文
摘要:
一 装饰器 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 阅读全文
摘要:
一 函数对象 function objects One of the most powerful features of Python is that everything is an object, including functions. Functions in Python are firs 阅读全文
摘要:
一 函数 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 阅读全文
摘要:
一 字符编码中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 阅读全文
摘要:
一 集合 Sets 1.定义 Definition Sets are used to store multiple items in a single variable. Set items are unordered, unchangeable, and do not allow duplicat 阅读全文
摘要:
一 列表补充 Lists 需要掌握的其它命令 index Returns the index of the first element with the specified value count Returns the number of elements with the specified v 阅读全文