随笔分类 - Python
摘要:Python Client for Google BigQuery bookmark_border Querying massive datasets can be time consuming and expensive without the right hardware and infrast
阅读全文
摘要:我们不用Cd C:\Users\xxx.xx\AppData\Local\Programs\Python\Python311 Python -m pip install openpyxl的方法。 解答: 下载包解压后,放到python安装目录Lib底下site-packages下 C:\Users\
阅读全文
摘要:C:\Users\Administrator\AppData\Roaming\Sublime Text\Packages\User python3.sublime-build配置文件写入例子: { "cmd": ["/usr/bin/python3", "-u", "$file"], "file_r
阅读全文
摘要:打开cmd,输入python -m pip install pip==18.0 怎么使用pip安装包?如下例子: pip install requests 如果pip有版本更新升级,如下面: python -m pip install --upgrade pip
阅读全文
摘要:tesseract安装软件下载: https://digi.bib.uni-mannheim.de/tesseract/ 语言包: https://tesseract-ocr.github.io/tessdoc/Data-Files 开启翻越模式,才能点击链接直接下载。 chi_sim Chines
阅读全文
摘要:# -*- coding: utf-8 -*- # This code shows an example of text translation from English to Simplified-Chinese. # This code runs on Python 2.7.x and Pyth
阅读全文
摘要:Union and union all in Pandas dataframe Python: Union all of two data frames in pandas can be easily achieved by using concat() function. Lets see wit
阅读全文
摘要:ref:https://www.jb51.net/article/159025.htm 关键词:Python 导出成 txt csv excel 文件格式 写入txt文件 1 2 3 4 5 6 7 8 def text_save(filename, data):#filename为写入CSV文件的
阅读全文
摘要:在Python中创建二维数组应该这样写: >>> C = [[0]*3 for i in range(4)]>>> C [[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]]>>> C[0][1] = 2>>> C[[0, 2, 0], [0, 0, 0], [0,
阅读全文