在想分享的檔案目錄下:
python3 -m http.server
python3 -m http.server 8888 //port:8888
or
python3 -m http.server --directory /path/to/directory
or
python3 -m http.server --protocol HTTP/1.1 //specify the HTTP version
打開browser,輸入127.0.0.1 or IP 就行了ref: stack overflow
沒有留言:
張貼留言