上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 1 touch 1.1 创建一个文件 touch yyTest.ini 1.2 同时创建两个文件 touch test1.txt test2.txt 1.3 批量创建文件(如创建2000个文件) touch test{0001..2000}.txt 1.4 更改文件 yyTest.ini时间为当前时 阅读全文
posted @ 2020-10-28 17:31 子觉 阅读(3052) 评论(0) 推荐(0) 编辑
摘要: 1、Linux系统是一种典型的多用户系统,不同的用户可以拥有不同的权限 通常使用一下两个命令来修改文件或目录的所属用户与权限: chown(change ownerp):修改所属用户与组 chmod(change mode):修改用户权限 2、"ll"或者"ls -l" 使用"ll"或"ls -l" 阅读全文
posted @ 2020-10-28 17:06 子觉 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 一、创建excel import pandas as pd df = pd.DataFrame() df.to_excel('C:/Temp/output.xls') print('Done!') 试着添加一些数据 import pandas as pd df = pd.DataFrame({'ID 阅读全文
posted @ 2020-10-16 17:00 子觉 阅读(169) 评论(0) 推荐(0) 编辑
摘要: def hanoi(n, x, y, z): if n == 1: print(x, '-->', z) else: hanoi(n-1, x, z, y) # 将n-1个盘子从x移动到y上 print(x, '-->', z) #将最底下的最后一个盘子从x移动到z上 hanoi(n-1, y, x 阅读全文
posted @ 2020-06-20 16:36 子觉 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 向列表中插入数据的几种方法: 1.append() 向列表末尾添加一个元素,注意,每次只能添加一个元素。 >>> names = ['张三', '李四', '王五'] >>> names.append('赵六') >>> names ['张三', '李四', '王五', '赵六'] 2.extend 阅读全文
posted @ 2020-06-20 11:01 子觉 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 一、其他数据类型转换为string类型 方法1.调用被转换类型的toString()方法(该方法不会影响到原变量,他会将转换的结果返回。) 但是注意:null和undefined这两个值没有toString方法。 let a = 123; // 转换成string let b = a.toStrin 阅读全文
posted @ 2020-06-05 22:19 子觉 阅读(5327) 评论(0) 推荐(0) 编辑
摘要: .stop 是阻止冒泡行为,不让当前元素的事件继续往外触发,如阻止点击div内部事件,触发div事件.prevent 是阻止事件本身行为,如阻止超链接的点击跳转,form表单的点击提交.self 是只有是自己触发的自己才会执行,如果接受到内部的冒泡事件传递信号触发,会忽略掉这个信号.capture 阅读全文
posted @ 2020-06-04 08:36 子觉 阅读(2144) 评论(0) 推荐(0) 编辑
摘要: systemctl start firewalld ##启动Firewall systemctl stop firewalld ##关闭Firewall systemctl restart firewalld ##重启Firewall 禁止开机启动启动防火墙systemctl disable fir 阅读全文
posted @ 2020-05-21 11:21 子觉 阅读(810) 评论(0) 推荐(0) 编辑
摘要: 一、pip一键导出和安装 导出: pip freeze > requirements.txt 安装: pip install -r requirements.txt 二、pip更新后还是旧版本的解决方法: 先卸载原先pip python3 -m pip uninstall pip 然后依次执行 cu 阅读全文
posted @ 2020-04-10 21:23 子觉 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 一、开启本地虚拟环境 pip install virtualenv 二、virtualenv的使用方法 1.创建:virtualenv <虚拟环境名称> 2.启动:Scripts\activate 3.退出:deactivate 例子: virtualenv blog_envcd blog_env\ 阅读全文
posted @ 2020-04-10 15:26 子觉 阅读(185) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页