Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
6605 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ

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

Tác giả

Hi @Mohammed Amal Thank you.

Do you have sample code that does this?

Bài viết liên quan Trả lời Lượt xem Hoạt động
6
thg 9 22
67417
0
thg 9 17
3695
3
thg 8 24
1896
0
thg 6 23
2951
1
thg 1 23
6415