Fork me on GitHub
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: 在判断某一天是哪一年的第几周的时候,根据采用的国际标准(忘了叫什么名字了),年首或者年末的那几天有可能不属于今年的第一周或者最后一周。 上代码: <?phpecho date("YW",strtotime("20141229"))."\n";echo date("YW",strtotime('201 阅读全文
posted @ 2022-03-11 15:47 君乐豹 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 通过爬虫获取到了wx的数据之后,其中包含图片,但是当拿到图片链接进行数据展示的时候会提示:“此图片来自...平台未经允许不可引用” 正常代码: <img src="{{d.icon_url}}" width="70" height="70" alt=""> 显示如下: 原因是加了防盗链。 如何设置防 阅读全文
posted @ 2021-12-28 17:29 君乐豹 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 之前有写过:根据二维数组中的某个字段进行排序(https://www.cnblogs.com/T8888/p/12877578.html)。 本次所写的是二维数组根据某个键进行排序 /** *@desc 给定二维数组按照指定的键进行排序 *@param array *@return array ** 阅读全文
posted @ 2021-12-22 17:49 君乐豹 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 楼主使用软件版本:Xshell 6 使用大约一年后无法正常打开软件,并提示“要继续使用此程序,您必须应用最新的更新” 解决方法一:按照提示更新软件结果:提示无法下载而失败 解决方法二:重装软件 重装软件会丢失之前的服务器配置信息,放弃该方法 解决方法三:修改配置文件 准备工作: 1、进入Xshell 阅读全文
posted @ 2021-12-16 11:10 君乐豹 阅读(1965) 评论(0) 推荐(1) 编辑
摘要: 操作环境:Windows10 准备工作 VMware,我用的是VMware Workstation Pro 15,下载与安装方法就不提了毕竟重点在后头。 CentOS7镜像文件,由于7.6版本已经停更,这里我用的是7.7版本。下载地址 :http://isoredirect.centos.org/c 阅读全文
posted @ 2021-12-15 17:43 君乐豹 阅读(52) 评论(0) 推荐(0) 编辑
摘要: $now_week_num = self::current_week(strtotime($date)); public static function current_week($date){ $week = self::get_week_block($date, $offset = 1); $w 阅读全文
posted @ 2021-12-09 18:03 君乐豹 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 通过年,月份获取一个月的周次信息 如果本月头一天不是星期一,则向上一个月取周一,本月最后的几天如果不能正好是一周,则忽略。 例如 2019-09月计算出来的结果 2016-08-29 2016-09-042016-09-05 2016-09-112016-09-12 2016-09-182016-0 阅读全文
posted @ 2021-12-09 18:00 君乐豹 阅读(189) 评论(0) 推荐(0) 编辑
摘要: <input type="radio" class="radio1" checked lay-ignore name="datatype" value="1"> 选项一 script $(“.radio1”).prop(‘checked’,true); form.render(“radio”); 阅读全文
posted @ 2021-12-09 17:57 君乐豹 阅读(308) 评论(0) 推荐(0) 编辑
摘要: php 获取指定月最后一天: <?phpfunction getthemonth($date){$firstday = date('Y-m-01', strtotime($date));$lastday = date('Y-m-d', strtotime("$firstday +1 month -1 阅读全文
posted @ 2021-12-09 17:50 君乐豹 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/qq_32719287/article/details/79513164 1、sql 语句中count()有条件的时候为什么要加上or null。 如count(province = '浙江' or NULL) 这部分,为什么要加上or NULL,直 阅读全文
posted @ 2021-11-16 14:45 君乐豹 阅读(214) 评论(0) 推荐(0) 编辑
摘要: import datetime today = datetime.datetime.today().date() print today.weekday() for i in range(10): next_week_start = today + datetime.timedelta(days=t 阅读全文
posted @ 2021-11-12 16:20 君乐豹 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 一.创建列表 1.创建一个普通列表 >>> tabulation1 = ['大圣','天蓬','卷帘'] >>> tabulation1 ['大圣', '天蓬', '卷帘'] >>> tabulation2 = [72,36,18] >>> tabulation2 [72, 36, 18] 2.创建 阅读全文
posted @ 2021-11-12 16:16 君乐豹 阅读(985) 评论(0) 推荐(0) 编辑
摘要: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by 配置php网站的时候,经常会在页首出现Warning: session_start() [f 阅读全文
posted @ 2021-11-12 16:14 君乐豹 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 推荐使用Layui镜像站:https://www.layui.siteLayer:https://www.layui.site/layer/index.htmMobile:https://www.layui.site/layer/mobile/index.htmLayui文档:https://www 阅读全文
posted @ 2021-11-01 16:51 君乐豹 阅读(970) 评论(0) 推荐(0) 编辑
摘要: 之前在交流群有人问过这样一个问题: 当时我介绍了一个名为 Tiler 的 GitHub 开源库。这个 Python 项目很骚气!一秒生成可爱像素风图片! 今天小五就给大家实战演示一下,如何将一个普通表情包转换成像素风? Tiler简介 Tiler,意味瓦工,也就是用各种小元素作为 “瓦”,搭建出一张 阅读全文
posted @ 2021-09-13 18:49 君乐豹 阅读(1322) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
Live2D