踩坑 Python自動化辦公實戰課

2022-06-21 21:00:14 字數 928 閱讀 3201

作者給出的**與練習文件的鏈結

因xlrd版本過高,無法讀取xlxs檔案,參考xlrd.biffh.xlrderror: excel xlsx file; not supported,重新安裝即可

pip3 install xlrd==1.2.0
**鏈結與專欄匹配得挺亂的(可能是缺少能直接用的**段),我想先去看會《word排版藝術》

在離線文字識別部分使用tesseract時出現錯誤,報錯資訊

pytesseract.pytesseract.tesseracterror: (1, 'error opening data file c:\\program files\\tesseract-ocr/tessdata/chi_sim.traineddata please make sure the tessdata_prefix environment variable is set to your "tessdata" directory. failed loading language \'chi_sim\' error opening data file /home/debian/src/github/tesseract-ocr/tesseract/bin/ndebug/x86_64-w64-mingw32-5.0.0-alpha.20201127/usr/x86_64-w64-mingw32/share/tessdata/eng.traineddata please make sure the tessdata_prefix environment variable is set to your "tessdata" directory. failed loading language \'eng\' tesseract couldn\'t load any languages! could not initialize tesseract.')
更新中···

python自動化辦公(一)

os模組簡介os是pyhon標準庫,可以實現和作業系統有關的操作,例如建立,移動,複製檔案和資料夾,檔案路徑和名稱處理等等 注意 有些指令是windows,mac,linux通用,有些只在mac,linux下可用獲取當前python程式執行路徑方法 import os print os.gecwd ...

自動化路上的踩坑經過

1.執行太快的坑 今天在批量的從excel裡邊讀取資料,並根據這些資料建立訂單,然後建立的時候因為報錯了,找不到訂單 坑 執行的太快了,在獲取到資料之後,被測試系統建立訂單需要一點時間,但是 執行的太快了,在去查詢是否建立好的時候,訂單還沒有建立完成 填坑 在查詢之前,先等待個幾秒鐘再去查詢,目前還...

python自動化辦公 郵件收發

一 安裝郵件庫 pip install pyemail 二 郵件介面 這裡以qq郵箱來介紹 需要開啟qq郵箱的設定 賬戶裡smtp服務,接下來會通過傳送簡訊驗證來獲得授權碼,有了授權碼後就可以在 裡新增了 步驟如下 傳送簡訊後會生成授權碼 導入庫import smtplib from email.m...