- 博客(7)
- 收藏
- 关注
原创 jupyter配置远程登录
然后根据提示输入两次设置的密码,完事儿就会生成一个json文件(/root/.jupyter/jupyter_notebook_config.json),会包含一个密码的字符串"sha1:xxxxxxxx",把这个字符串复制好,粘贴到生成的配置文件里。在命令行输入jupyter notebook --generate-config,然后就自动生成一个.jupyter的文件夹(默认地址在 /root/.jupyter/jupyter_notebook_config.py),里面有一份配置文件,
2023-06-09 16:51:30
632
1
原创 python连接ftp
from ftplib import FTP # 加载ftp模块 ip = '127.0.0.1' port = 21 # int 类型 username = 'ftp' password = '111111' ftp = FTP() # 设置变量 ftp.connect(ip,port ) # 连接的ftp sever和端口 ftp.login(username, password) # 连接的用户名,密码 ftp.cwd('path') # 切换工作目录 print(ftp.nlst()
2021-08-31 15:52:30
1835
原创 pytest多用例并行
使用pytest-xdist包 pip install pytest-xdist 使用方法: -n 并行数量 *.py 例: pytest -n 5 test.py 并行运行五条用例 问题: 配合使用@pytest.mark.parametrize
2021-08-31 10:42:48
432
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人