![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
SIyu Gong
这个作者很懒,什么都没留下…
展开
-
linux平台下后台运行 及log 打印方法
1.用nohup命令运行程序 nohup将程序的log信息输出到nohup.out文件,文件中只打印log信息,print的信息不会被写入。如果重新运行这个文件好像需要自己清?因为原本是追加的方式写入 运行命令: nohup python3 xxx.py & 或运行脚本: nohup ./run.sh & 查看log文件 用tailf 命令以追加的方式读取nohup可以实时看到输出结果: tailf nohup.out tailf -1000 nohup.out 2 .原创 2020-07-14 15:58:30 · 2812 阅读 · 0 评论 -
Ubuntu下升级Python到3.6
首先其实要解决的问题是 print(f'[!] It should be noted that UNK ratio for embedding-based: {round(no_save / (no_save + counterp), 4)}') invalid syntax。 这个问题,主要是由python版本号的造成的python3.6以上就可以使用f‘ [i] ’ 这种形式了 那如何解决这个问题呢? 我们需要把python版本升级3.6或3.6以上 那么第一步 增加仓库 ad...原创 2020-07-14 12:15:35 · 565 阅读 · 0 评论