1. Want to copy the computer files and press it to another computer but there is no U disc
2. I want to get the files stored in the computer on my phone
3. Forget to bring U disc
You are too lost , however ！！ These are not things , a line python Code can handle these requirements ！！
Press and hold Shift Right click the right mouse button while you click , The following box will pop up , choice Open command window here You can reach the goal in one step .
In the pop-up cmd Enter the following code in the window , The port number is optional
python -m http.server 9527 # After that is the port number
1. Create a new one cmd window , Input ipconfig, Find this machine IP that will do .
Open the browser , Enter the IP+ Port number , What I have here is 192.168.0.105:9527, You can see the files you need to share . Click directly to download .
Open the browser , Input 192.168.0.105:9527 Also accessible ！ It's the same as the computer . Click and download .
The following figure is referenced in pyhton Official documents . Because of my poor English , No translation .
Please visit https://docs.python.org/3/library/http.server.html#module-http.server, Self access .
This http.server It still works .
What about? ！python Isn't it amazing .
Okay , This sharing is over .
If you have any questions, please leave a message below .
Video link , Please stamp ：《Python Forget about practical skills U What to do if it's done ？（ Mobile phone access to computer files ）》