跳至内容
菜单
此问题已终结

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
67234
0
9月 17
3616
3
8月 24
1859
0
6月 23
2913
1
1月 23
6320