我這邊目前有很多統一發票要命名 我想用python讀取這些統一發票的pdf檔 並依照上面的發票日期和號碼來命名 請幫我寫一段這樣的程式碼
Jump to turn (19)
- 1我這邊目前有很多統一發票要命名 我想用python讀取這些統一發票的pdf檔 並依照上面的發票日期和號碼來命名 請幫我寫一段這樣的程式碼
- 2Cell In[9], line 6 pdf\dir = 'C:\Users\tiffa\Desktop\vscode\python\.vscode\發票' ^
- 3DeprecationError: PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. U
- 4AttributeError: 'PdfReader' object has no attribute 'Info'
- 5AttributeError Traceback (most recent call last) Cell In[13], line 16 13 pdf = P
- 6--------------------------------------------------------------------------- Attr
- 7--------------------------------------------------------------------------- Attr
- 8--------------------------------------------------------------------------- Attr
- 9DeprecationError Traceback (most recent call last) Cell In[17], line 16 13 pdf =
- 10--------------------------------------------------------------------------- Attr
- 11後續請用中文表達 -----------------------------------------------------------------------
- 12請根據上面內容重寫程式碼
- 13FileNotFoundError Traceback (most recent call last) Cell In[22], line 6 4 # 讀取PD
- 14路徑是這個C:\Users\tiffa\Desktop\vscode\python\.vscode\發票 寫幫我寫成整段程式碼
- 15DeprecationError Traceback (most recent call last) Cell In[23], line 7 5 # 讀取PDF
- 16RuntimeError Traceback (most recent call last) Cell In[24], line 2 1 # 載入必要的套件 -
- 17RuntimeError Traceback (most recent call last) Cell In[25], line 1 ----> 1 impor
- 18ModuleNotFoundError Traceback (most recent call last) Cell In[28], line 1 ---->
- 19寫成中文並用python寫好
- User
我這邊目前有很多統一發票要命名 我想用python讀取這些統一發票的pdf檔 並依照上面的發票日期和號碼來命名 請幫我寫一段這樣的程式碼
- Assistant
以下是一個使用Python讀取PDF檔案並從中擷取統一發票日期和號碼的範例程式碼,並以此為基礎來進行命名:
python