Skip to content

Python

Avec Python 2 :

python -m SimpleHTTPServer port

Avec Python 3 :

python -m http.server port

Credit : Matt http://doc.callmematthi.eu

#!/usr/bin/python
text_file = open("/tmp/send.txt", "w")
text_file.write(strMsg)
text_file.close()