工具
莫迟_
人生苦短
展开
-
解决每次github提交代码都要输入token值问题
【代码】解决每次github提交代码都要输入token值问题。原创 2023-03-20 15:44:00 · 981 阅读 · 0 评论 -
Windows10创建局域网无密码的文件共享
Windows10文件共享原创 2022-11-01 19:34:44 · 610 阅读 · 0 评论 -
vscode远程连接服务器本地开发
Vscode远程连接服务器开发1. 安装插件Remote-SSH2.本地ssh公钥配置到远程服务器1.拷贝Windows: C:\Users\用户名.ssh\id_rsa.pub2.粘贴到服务器linux上: /root/.ssh/authorized_keys3.点击vscode左下角ssh图标,配置远程有效连接 1. 点击左下角ssh连接 > Open SSH Configuration File 2. Host 124.220.30.68 HostNam原创 2022-04-08 10:38:05 · 1596 阅读 · 0 评论 -
Type hint类型提示语法
Type hint类型提示语法1. python3.5之后引进# 需要的输入数据类型是int , 返回的数据类型是strdef gen_randcode(length: int) -> str: """产生出指定长度的随机码""" # 多个字符相加,每次相加都会调用内存,占用资源 # ''.join(['a', 'b']) 函数只会调用一次内存将列表内的所有字符拼在一起 chars = [str(random.randint(0, 9)) for i in ra原创 2022-03-07 22:14:38 · 195 阅读 · 0 评论 -
vscode终端及mobax终端git 代码提代码报Missing or invalid credentials.问题
问题描述:1. vscode终端git push提交代码报错Missing or invalid credentials.2. mobax上git push报错:注意:此时报的有Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.解决方法:1. August 13, 2021后,git提交要用token验证而非密码,去gi原创 2022-03-06 11:34:52 · 2653 阅读 · 0 评论 -
git常规操作
1.安装gitapt-get install git2.克隆远程仓库git clonehttps://github.com/test.git3.进入拉仓的目录配置信息git config user.name "xxx" git config user.email "[email protected]"4.推送项目到远程仓库git add . git commit -m “立项" git push(此时需要按照提示输入github的账号和密码) git config --global cr.原创 2021-03-09 23:12:05 · 1264 阅读 · 0 评论 -
vscode在Windows中配置Git上传代码到Github
1. Windows下载安装git下载链接:https://git-scm.com/download/win2.git环境变量设置及版本查看添加环境变量:. 找到git文件夹下的cmd路径(shit + 鼠标右键 : 复制文件所在地址)如: C:\Program Files\Git\cmd.环境变量添加:名:git值:C:\Program Files\Git\cmd2.查看git是否安装成功cmd : git --version3.vscode设置git路径1. settin原创 2022-02-24 11:28:37 · 606 阅读 · 0 评论 -
vim底行指令多行注释#和解注释
1.vim底行命令模式(1).64至74行首插入"#":底行指令:64, 74 s/^/#/g 64 #[Running] python -u "\Py\deco_1.py" 65 #enter deco3 (foo) 66 #enter deco2 (wrap_3) 67 #enter deco1 (wrap_2) 68 #enter wrapers_1 (2, 3) 69 #enter wrapers_2 (2, 3) 70 #enter wrapers_3 (2, 3) 7原创 2022-02-24 08:45:53 · 1246 阅读 · 0 评论 -
vim指定行注释和解注释
1.vim底行命令模式1.64至74行首插入"#":64, 74 s/^/#/g 64 #[Running] python -u "\Py\deco_1.py" 65 #enter deco3 (foo) 66 #enter deco2 (wrap_3) 67 #enter deco1 (wrap_2) 68 #enter wrapers_1 (2, 3) 69 #enter wrapers_2 (2, 3) 70 #enter wrapers_3 (2, 3) 71 #exit原创 2022-04-22 13:05:24 · 359 阅读 · 0 评论 -
vscode配置header指令添加头部注释或KoroFileHeader自动添加头部解释
vscode新建文件自动设置文件头部注释原创 2022-02-23 22:30:31 · 2327 阅读 · 0 评论