上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 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☆ 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 一:安装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☆ 阅读(115) 评论(0) 推荐(0) 编辑
摘要: https://learnku.com/articles/68586 阅读全文
posted @ 2022-06-16 11:05 Smile☆ 阅读(8) 评论(0) 推荐(0) 编辑
摘要: $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☆ 阅读(96) 评论(0) 推荐(0) 编辑
摘要: $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☆ 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 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☆ 阅读(512) 评论(0) 推荐(0) 编辑
摘要: // include_once "callback/WXBizMsgCrypt.php"; 文件自行去企业微信文档里下载(https://work.weixin.qq.com/api/doc/90000/90138/90307)//// // 企业号平台上设置的参数如下// $encodingAes 阅读全文
posted @ 2021-11-19 15:57 Smile☆ 阅读(1237) 评论(0) 推荐(0) 编辑
摘要: //获取表单提交的压缩文件$file = $_FILES['file'];//获取文件名$name = $file['name'];//获取绝对路径$path = getcwd().'/';//定义文件保存路径$filepath= $path.'uploads/'.$name;//使用PHP函数移动 阅读全文
posted @ 2021-07-13 14:22 Smile☆ 阅读(660) 评论(0) 推荐(0) 编辑
摘要: composer require alibabacloud/sdk(代码去阿里云可以看) 阅读全文
posted @ 2021-02-28 19:34 Smile☆ 阅读(94) 评论(0) 推荐(0) 编辑
摘要: $data = Admin::offset($page(开始数))->limit($limit(返回条数))->get()->toArray(); 阅读全文
posted @ 2021-02-03 16:12 Smile☆ 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 对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☆ 阅读(221) 评论(0) 推荐(0) 编辑
摘要: python对象排序升序: sorted_list = sorted(数组, key=lambda 键: 键.去对应的值) python对象排序降序: sorted_list = sorted(数组, key=lambda 键: 键.去对应的值,reverse=True) 阅读全文
posted @ 2020-12-30 17:13 Smile☆ 阅读(825) 评论(0) 推荐(0) 编辑
摘要: 修改python接口返回给前端的格式封装: return HttpResponse( json.dumps(values,ensure_ascii=False),//返回数据 content_type="application/json;charset=utf-8" ) 阅读全文
posted @ 2020-12-26 15:25 Smile☆ 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 终端进入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☆ 阅读(2070) 评论(0) 推荐(0) 编辑
摘要: 解决办法: 在django项目的settings.py里最后添加默认静态文件: STATIC_ROOT = os.path.join(BASE_DIR,'static_all') 然后打开django的后台样式目录: python3 manage.py 出现下图: 将这个存在的静态目录生成我们默认的 阅读全文
posted @ 2020-12-23 11:38 Smile☆ 阅读(421) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页