首先使用xshell连接端口。然后执行命令进行配置
import webrepl_setup

输入密码,然后重启。
启动
import webrepl
webrepl.start()

启动后,就可以通过浏览器访问了。
可以在github上下载:https://github.com/micropython/webrepl
需要下载:webrepl.html,term.js,FileSaver.js 三个文件。
下载完成后,直接浏览器打开html文件就可以了。输入地址,然后点击connect,输入密码就可以连接了。

可以用来上传和下载代码。