文章目录
Python 列表表达式与生成器表达式
https://www.cnblogs.com/pzk7788/p/10269956.html
函数重载与Python:
https://www.cnblogs.com/yqpy/p/8555980.html
Python面向对象基础:设置对象属性
https://www.cnblogs.com/f-ck-need-u/p/10091181.html
'_,'是什么意思
_就是一个变量,换成a也是可以的,没有特别的意思,不过一般用_表示的变量好像都是没什么用的一个临时变量,大概是一个编程习惯吧。比如
_, pooled = self.bert(context, attention_mask=mask, output_all_encoded_layers=True) #shape [128,768]
https://zhidao.baidu.com/question/258960987.html
python 数组 变成 字典的方法【使用zip】
https://www.cnblogs.com/kaibindirver/p/10716466.html
Python字典伪切片实现
https://blog.csdn.net/danengbinggan33/article/details/82884453
python逻辑运算符【not, and, or】
https://www.cnblogs.com/zhaoyang1997/p/10264080.html
python字典的遍历【keys() 、values() 、items()】
https://www.cnblogs.com/FlyingLiao/p/11192330.html
Python strip()方法
https://www.runoob.com/python/att-string-strip.html
python中的*和**参数
*(任意多个非关键字参数,以数组形式保存)
**参数(任意多个关键字参数,以字典形式保存)
https://blog.csdn.net/m0_37924639/article/details/79838398
Python3 * 和 ** (乘方)运算符
https://blog.csdn.net/yilovexing/article/details/80577510
python中 r’’, b’’, u’’, f’’ 的含义
https://blog.csdn.net/u010709324/article/details/100163873
- Python 之 readline()
https://blog.csdn.net/peanutfish/article/details/102510526 - python文件读写小结
https://www.cnblogs.com/zywscq/p/5441145.html - 诡异错误一: ValueError: embedded null character
https://www.cnblogs.com/quintin/p/7372291.html - 【python】读取和输出到txt
https://blog.csdn.net/zxfhahaha/article/details/81288660 - python读写json文件
https://www.cnblogs.com/bigberg/p/6430095.html - Invalid control character at: line 1 column 解决
https://blog.csdn.net/weixin_30300523/article/details/99377577 - ERROR:Excel xlsx file; not supported
https://blog.csdn.net/weixin_44073728/article/details/111054157 - python里面的xlrd模块详解(一)
https://www.cnblogs.com/insane-Mr-Li/p/9092619.html - python3 循环读取excel文件并写入json操作
https://www.jb51.net/article/190695.htm - python | 统计词频的三种方法
https://zhuanlan.zhihu.com/p/97120628
python中[-1]、[:-1]、[::-1]、[n::-1]使用方法
https://blog.csdn.net/qq_21840201/article/details/85084621
round(number,num_digits)
Number 需要进行四舍五入的数字。
Num_digits 指定的位数,按此位数进行四舍五入。
https://blog.csdn.net/qq_43313588/article/details/86624840
Inconsistent use of tabs and spaces in indentation等问题的解决
有的解释器是会区分四个空格和一个tab的
https://blog.csdn.net/hhy_csdn/article/details/82263757
error
python 异常处理 StopIteration 用来作为迭代器的输出停止/next()
https://blog.csdn.net/csdnhuizhu/article/details/107268520