摘要: mangodb 1.安装 sudo apt get install y mongodb org https://docs.mongodb.com/manual/tutorial/install mongodb on ubuntu/ 官方文档 2. 启动命令 1. 服务端mongodb的启动 查看帮助 阅读全文
posted @ 2019-01-19 16:53 半晌贪欢 阅读(505) 评论(0) 推荐(0) 编辑
摘要: vim命令 任意模式切换到命令模式: esc 命令模式到插入模式: 输入i 命令模式到末行模式: ctrl + ; w:存盘,wq保存退出,q不存盘直接退出 vim常用命令 命令模式:输入命令,操作vim 插入(编辑)模式:写代码,写入文件 末行模式:保存、退出等 编辑模式: i: 进入编辑模式 命 阅读全文
posted @ 2019-01-09 11:09 半晌贪欢 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 关于格式 1.json dict = json.loads(str) str = json.dumps(dict) 2.pickle pickle模块是python的标准模块,提供了对于python数据的序列化操作,可以将数据转换为bytes类型,其序列化速度比json模块要高。 pickle.du 阅读全文
posted @ 2019-01-04 15:56 半晌贪欢 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 页面定制CSS代码 / 定制公告栏时钟位置 / clockdiv { / left, center, right / text align: center; } 博客侧边栏公告(支持HTML代码)(支持JS代码) <! 添加公告栏时钟 时钟canvas 阅读全文
posted @ 2019-01-04 13:13 半晌贪欢 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 点击心形(放在页脚html处) / 鼠标特效 / var a_idx = 0; jQuery(document).ready(function($) { $("body").click(function(e) { var a = new Array("❤富强❤","❤民主❤","❤文明❤","❤和谐 阅读全文
posted @ 2019-01-04 13:04 半晌贪欢 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 关于路径 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 表示当前文件所在路径的上一级的上一级的路径,可以多次嵌套上一级 sys.path.insert(0,os.path.join(BASE_DIR,'a 阅读全文
posted @ 2019-01-03 08:48 半晌贪欢 阅读(118) 评论(0) 推荐(0) 编辑
摘要: ubuntu 1.Linux基本命令(一) 1.ls表示当前文件夹下面的内容 2.pwd表示当前位置 3.cd[目录名]表示切换文件夹 cd空格Desktop .cd表示切换路径,如果在当前路径下没有输入的指令的路径,将不执行 4.touch[文件名]表示新建文件 touch空格123.txt to 阅读全文
posted @ 2019-01-02 20:14 半晌贪欢 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1. 在Ubuntu中安装Docker 更新ubuntu的apt源索引 sudo apt get update 安装包允许apt通过HTTPS使用仓库 sudo apt get install \ apt transport https \ ca certificates \ curl \ soft 阅读全文
posted @ 2019-01-02 11:02 半晌贪欢 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 脚本导入sql数据 如: !/bin/bash mysql h192.168.55.5 u账户 p密码 表名 阅读全文
posted @ 2019-01-02 08:49 半晌贪欢 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 观沧海 曹操 东临碣石,以观沧海。 水何澹澹,山岛竦峙。 树木丛生,百草丰茂。 秋风萧瑟,洪波涌起。 日月之行,若出其中。 星汉灿烂,若出其里。 幸甚至哉,歌以咏志。 阅读全文
posted @ 2019-01-01 23:18 半晌贪欢 阅读(106) 评论(0) 推荐(0) 编辑