上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: ```pyth from os import time print("haha") ``` ```python from os import time print("haha") time.time()![beautiful](https://wx4.sinaimg.cn/mw200/bc8909e5gy1g41st10120j217c17chdt.jpg) ``` ![views](http... 阅读全文
posted @ 2019-07-16 13:25 olivertian 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 首先who(或w)查看需要杀死的终端名,然后执行: pkill -9 -t pts/? pkill相当于ps和kill的结合,用法和killall类似,根据进程名来杀死一类进程(kill是杀死单个) -9:表示强制杀死进程 -t pts/?: 阅读全文
posted @ 2019-07-16 11:15 olivertian 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 上传图片时报错:"Got a packet bigger than 'max_allowed_packet' bytes" 修改参考:https://blog.csdn.net/github_39325328/article/details/79549756 没事不要重启mysql 否则修改失效了, 阅读全文
posted @ 2019-07-16 00:54 olivertian 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 原文:https://www.cnblogs.com/huchong/p/8244279.html 另一篇关于.pyc文件是什么? 原文: http://blog.sina.com.cn//s/blog_17bce02530102ya3k.html 一:什么是pyc文件? pyc文件就是 py程序编 阅读全文
posted @ 2019-07-10 22:26 olivertian 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 原文1:https://blog.csdn.net/zhuchuji/article/details/50736360 原文2(window.location.href和window.location.hash的区别):https://blog.csdn.net/liwusen/article/de 阅读全文
posted @ 2019-07-09 21:15 olivertian 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 原文:https://www.jb51.net/article/152825.htm 阅读全文
posted @ 2019-07-08 11:25 olivertian 阅读(427) 评论(0) 推荐(0) 编辑
摘要: container有个15px的padding,而我们设定的每个col也都有15px的padding,如果两者直接配合,那么就会产生30px的间距,导致内容和浏览器边框的距离较大,所以用row将所有的col包裹,row会有一个-15px的margin,可以抵消掉一个container或col产生的1 阅读全文
posted @ 2019-07-02 12:04 olivertian 阅读(6803) 评论(0) 推荐(1) 编辑
摘要: 元素选择器:如上面的p{},实实在在的存在的元素。 伪元素选择器:dom中不存在的元素,仅仅是css中用来渲染,添加一些特殊效果的,比如p::before,选择p标签(真元素)前面的假元素(伪元素,p标签前面没有元素,只是假设有) 类选择器:真实有的类,我们自己正儿八经定义的类,如p.test1,选 阅读全文
posted @ 2019-06-30 14:26 olivertian 阅读(2618) 评论(0) 推荐(0) 编辑
摘要: 基本语法参考 转自:https://blog.csdn.net/u014061630/article/details/81359144 更改字体、颜色、大小,设置文字背景色,调整图片大小设置居中 转自:https://blog.csdn.net/heimu24/article/details/811 阅读全文
posted @ 2019-06-27 13:45 olivertian 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 使用视图函数时,django完成URL解析之后,会直接把request对象以及URL解析器捕获的参数(比如re_path中正则表达捕获的位置参数或关键字参数)丢给视图函数,但是在类视图中,这些参数不能直接丢给一个类,所以就有了as_view方法,这个方法只做一件事就是返回一个闭包,这个闭包像视图函数 阅读全文
posted @ 2019-06-23 13:53 olivertian 阅读(19260) 评论(0) 推荐(2) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页