安装pyftpdlib pip3 install pyftpdlib 开启ftp服务 python3 -m pyftpdlib -p 21 -d </path/to/file> # 最后填写内容为要共享的文件所在目录的路径