限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。
当前位置:首页 >开发者

开发者

shell学习 基础(1)

#!/bin/bash #for.sh for i in a b c d do echo $i sleep done 设置权限 chmod a+x for.sh 不设去权限使用 bash ./for.sh 执行 tab自动补全 demo:设置网卡ip vi /etc/sysconfig/network-scripts/ifcfg-eth0 命令历史 hist

php获取 request payload中的数据

if (isset($GLOBALS['HTTP_RAW_POST_DATA'])) { $userinfo1 = $GLOBALS['HTTP_RAW_POST_DATA']; } else { $userinfo1 = file_get_contents('php://input'); } $userinfo = object_to_array(json

微信分享 demo

index.html wx.config({ debug: false, appId: '', timestamp: '', nonceStr: '', signature: '', jsApiList: [ 'checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage' ] }); wx.ready

layui-table-ajax-php显示数据

public function cp_list() { if ($this->request->isAjax()) { $map = []; $keyword = $this->request->param('keyword'); $page = $this->request->param('page/d', 1); $limit = $this->requ

转载 | PHP中的排序函数sort、asort、rsort、krsort、ksort区别分析

在php中自带了大量了数组排序函数,下面我们一一来介绍一下关于php数组排序的用法吧。 sort() 函数用于对数组单元从低到高进行排序。 rsort() 函数用于对数组单元从高到低进行排序。 asort() 函数用于对数组单元从低到高进行排序并保持索引关系。 arsort() 函数用于对数组单元从高到低进行排序并保持索引关系。 ksort() 函数用于对数