跳至內容
選單
此問題已被標幟
4 回覆
6577 瀏覽次數

I generated a txt file when clicking a button using python code and it is automatically  saved to /opt

Is there a way that I can generate a txt file when clicking a button or get the saved txt file from the /opt and download it using browsers. 

Any suggestions of tutorials or documentation about it?

頭像
捨棄

Hi, Have you tried urllib package. I think it covers fetching file from system and to download it.

作者

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

相關帖文 回覆 瀏覽次數 活動
6
9月 22
67365
0
9月 17
3669
3
8月 24
1890
0
6月 23
2947
1
1月 23
6394