python 正则表达式 \d+
\d+ means one or more digit [0-9] (depending on LOCALE)\d- means a digit followed by a dash -...
python 三目运算符
Python 允许在三目运算符的 True_statements 或 False_statements 中放置多条语句。Python 主要支持以下两种放置方式: 多条语句以英文逗号隔开:每条语句都会执行,程序返回多条语句的返回值组成的...
Python 面向对象
https://www.runoob.com/python/python-object.html 讲的太好本文参考链接:https://blog.csdn.net/dudu3332/article/details/102883179...
python 异常处理
https://www.runoob.com/python/python-exceptions.html本文参考链接:https://blog.csdn.net/dudu3332/article/details/102901505...
python正则表达式
https://docs.python.org/zh-cn/3.7/library/re.html本文参考链接:https://blog.csdn.net/dudu3332/article/details/102928566...
python 输入多行数字 并且转化为矩阵
import numpy as np def get2DlistData(): res = [] inputLine = input() #以字符串的形式读入一行 #...
python continue语句
for x in 'sdfwesd': if x == 'd': continue print('this',x) var=10 while var>0: var-=1...
python 解释器
2.2. 解释器及其环境 2.2.1. 错误处理 有错误发生时, 解释器会输出错误信息和栈跟踪. 交互模式下, 它返回到主提示符, 如果从文件输入执行, 它在打印栈跟踪后以非零状态退出. (在 try 语句中抛出并被...
python 添加进程process
https://morvanzhou.github.io/tutorials/python-basic/multiprocessing/2-add/本文参考链接:https://blog.csdn.net/dudu3332/article/...
python 小技巧第二部分 完结
listname.insert(index , obj) 其中,index 参数指的是将元素插入到列表中指定位置处的索引值。 使用 insert() 方法向列表中插入元素,和 append() 方法一样,无论插入的对象是列表还是元组,都只...