10 2021 档案
摘要:import numpy as np # Save dictionary = {'hello':'world'} np.save('my_file.npy', dictionary) # Load read_dictionary = np.load('my_file.npy',allow_pickl
阅读全文
摘要:import numpy as np graph = [(0, 1), (1, 5), (1, 7), (4, 5), (4, 8), (1, 6), (3, 7), (5, 9),(2, 4), (0, 4), (2, 5), (3, 6), (8, 9)] rows = np.array(lis
阅读全文
摘要:安装python插件 打开设置,搜索Python: Terminal: Execute in File Dir, 勾选上 打开launch.json ,添加"cwd": "${fileDirname}"
阅读全文
摘要:为jupyter lab安装代码补全的离奇经历 故事的开始起源于本人想用jupyter lab 来写代码,但jupyter lab的代码补全实在是难以忍受。。。。 遇到的第一个boss……nodejs 用conda安装了nodejs,遇到了第一个问题,总是给我安装6.2.1,kora!我要安装nod
阅读全文
摘要:md,我说的的电脑风扇怎么转个不停,原来有人给我的电脑注入了挖矿病毒,cnm!挖矿4000+ 解决方案 su root 我的root密码还完了,太难受了,进入到recovery模式,把密码给清除了一次 top查看cpu占用 枯了,有个叫 syst3md的进程,占用了300%的cpu,合理怀疑这个就是
阅读全文
摘要:如何远程访问jupyter 这个其实可以玩的很花,比如用nginx代理,用一个域名来访问jupyter,但是我这里只做一个基本的远程登录,即通过浏览器使用 remote_ip: port 来实现远程访问 使用screen sudo apt install screen 建议jupyter在scree
阅读全文
摘要:转载:https://www.cnblogs.com/arlenlin/p/14197547.html 转载:如果 SSH 被中断,Linux screen 工具如何拯救你的任务以及理智 - Linux中国的文章 - 知乎 https://zhuanlan.zhihu.com/p/104059175
阅读全文
摘要:import pyperclip import string text = pyperclip.paste() text = text.replace('\r\n',' ') text = text.strip()#行末尾去空格,行头空格也去 pyperclip.copy(text) 这是te.py
阅读全文
摘要:更换gcc版本 sudo apt install gcc-10 sudo rm /usr/bin/gcc sudo ln -s /usr/bin/gcc-10 /usr/bin/gcc 安装NVIDIA驱动 禁用图形界面 sudo systemctl set-default multi-user.t
阅读全文