会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
祝您今天愉快🤗微笑每一天💕💕💕
鱼跃此时海 花开彼岸天
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
8
下一页
2022年8月11日
php批量清楚数组的同一个字段
摘要: array_walk($list, function (&$item) { $item = array_diff($item, ['name', 'sex']); }); array_walk($arr_ten, function (&$val) { unset($val['pay']);});
阅读全文
posted @ 2022-08-11 16:25 Smile☆
阅读(26)
评论(0)
推荐(0)
2022年8月3日
获取汉字拼音或者首字母
摘要: 一:安装overtrue/pinyin拓展 composer require overtrue/pinyin overtrue/pinyin拓展GitHub地址:https://github.com/overtrue/pinyin 二:overtrue/pinyin拓展简单使用 overtrue/p
阅读全文
posted @ 2022-08-03 11:05 Smile☆
阅读(196)
评论(0)
推荐(0)
2022年6月16日
50个开发工具
摘要: https://learnku.com/articles/68586
阅读全文
posted @ 2022-06-16 11:05 Smile☆
阅读(19)
评论(0)
推荐(0)
2022年6月10日
php保留数组中的某个元素为某个值的数组元素
摘要: $arr23 = [ ['day' => 1], ['day' => 2], ['day' => 3],];$res = array_filter($arr23, function ($element) { return $element['day'] == 2; //只保留数组中的day元素为天数
阅读全文
posted @ 2022-06-10 14:37 Smile☆
阅读(111)
评论(0)
推荐(0)
2021年12月27日
多字段去重php
摘要: $insert[] = [ 'where' => $sv2['cpy_empcode1'], 'card_id' => $sv2['card_id'],]; $container = array();$result = array();$number = 1;foreach ($insert as
阅读全文
posted @ 2021-12-27 14:31 Smile☆
阅读(132)
评论(0)
推荐(0)
2021年11月19日
企业微信开发url回调成功后的对xml解密出明文
摘要: include_once "callback/WXBizMsgCrypt.php";(文件自行去企业微信文档里下载(https://work.weixin.qq.com/api/doc/90000/90138/90307))$inputXmlData = file_get_contents('php
阅读全文
posted @ 2021-11-19 16:00 Smile☆
阅读(711)
评论(2)
推荐(0)
企业微信开发url回调验证
摘要: // include_once "callback/WXBizMsgCrypt.php"; 文件自行去企业微信文档里下载(https://work.weixin.qq.com/api/doc/90000/90138/90307)//// // 企业号平台上设置的参数如下// $encodingAes
阅读全文
posted @ 2021-11-19 15:57 Smile☆
阅读(1408)
评论(0)
推荐(0)
2021年7月13日
PHP上传ZIP压缩包并解压
摘要: //获取表单提交的压缩文件$file = $_FILES['file'];//获取文件名$name = $file['name'];//获取绝对路径$path = getcwd().'/';//定义文件保存路径$filepath= $path.'uploads/'.$name;//使用PHP函数移动
阅读全文
posted @ 2021-07-13 14:22 Smile☆
阅读(706)
评论(0)
推荐(0)
2021年2月28日
oss临时授权composer安装包
摘要: composer require alibabacloud/sdk(代码去阿里云可以看)
阅读全文
posted @ 2021-02-28 19:34 Smile☆
阅读(103)
评论(0)
推荐(0)
2021年2月3日
lumen DB offset()和limit()分页
摘要: $data = Admin::offset($page(开始数))->limit($limit(返回条数))->get()->toArray();
阅读全文
posted @ 2021-02-03 16:12 Smile☆
阅读(311)
评论(0)
推荐(0)
2020年12月30日
python用List的内建函数list.sort进行排序
摘要: 对List进行排序,Python提供了两个方法方法1 用List的内建函数list sort进行排序list sort(func=None, key=None, reverse=False)Python实 对List进行排序,Python提供了两个方法 方法1.用List的内建函数list.sort
阅读全文
posted @ 2020-12-30 17:15 Smile☆
阅读(237)
评论(0)
推荐(0)
python对象排序
摘要: python对象排序升序: sorted_list = sorted(数组, key=lambda 键: 键.去对应的值) python对象排序降序: sorted_list = sorted(数组, key=lambda 键: 键.去对应的值,reverse=True)
阅读全文
posted @ 2020-12-30 17:13 Smile☆
阅读(835)
评论(0)
推荐(0)
2020年12月26日
修改python接口返回给前端的格式封装
摘要: 修改python接口返回给前端的格式封装: return HttpResponse( json.dumps(values,ensure_ascii=False),//返回数据 content_type="application/json;charset=utf-8" )
阅读全文
posted @ 2020-12-26 15:25 Smile☆
阅读(580)
评论(0)
推荐(0)
2020年12月24日
linux设置uwsgi开机自启
摘要: 终端进入Linux启动文件夹 cd /etc/init.d 在/etc/init.d/ 文件夹下创建一个shell脚本名为 uwsgi.sh 添加如下内容 : #!/bin/bash -e /usr/bin/uwsgi --ini /data/wwwroot/traffic_scheduling/w
阅读全文
posted @ 2020-12-24 16:39 Smile☆
阅读(2173)
评论(0)
推荐(0)
2020年12月23日
访问django后台无样式加载
摘要: 解决办法: 在django项目的settings.py里最后添加默认静态文件: STATIC_ROOT = os.path.join(BASE_DIR,'static_all') 然后打开django的后台样式目录: python3 manage.py 出现下图: 将这个存在的静态目录生成我们默认的
阅读全文
posted @ 2020-12-23 11:38 Smile☆
阅读(442)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
8
下一页
公告