会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xiondun
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
23
24
25
26
27
28
29
30
31
下一页
2020年3月31日
mysql清空表后id重1开始
摘要: mysql清空表后id重1开始 通过“truncate table 表名”方式重置清空id,让id从1开始自动递增,
阅读全文
posted @ 2020-03-31 13:27 xiondun
阅读(619)
评论(0)
推荐(0)
2020年3月26日
python 下载图片
摘要: def mkdir(path): path = path.strip() path = path.rstrip("\\") isExists = os.path.exists(path) if not isExists: os.makedirs(path) return True else: ret
阅读全文
posted @ 2020-03-26 20:35 xiondun
阅读(338)
评论(0)
推荐(0)
2020年3月25日
python flask get 和 post
摘要: from flask import Flask,requestapp = Flask(__name__) post获取ordersn_list=str(request.form['ordersn_list']) shopid=int(request.form['shopid']) limit=req
阅读全文
posted @ 2020-03-25 21:15 xiondun
阅读(1120)
评论(0)
推荐(0)
Python操作redis
摘要: Python—操作redis Python操作redis python连接方式:点击 下面介绍详细使用 1、String 操作 redis中的String在在内存中按照一个name对应一个value来存储 set() #在Redis中设置值,默认不存在则创建,存在则修改 r.set('name',
阅读全文
posted @ 2020-03-25 20:51 xiondun
阅读(210)
评论(0)
推荐(0)
小程序微信支付完成通知结果处理,回调处理
摘要: /** * 支付完成通知 * @param request * @param response * @return * @throws Exception */ @RequestMapping(value = "/notify",method = RequestMethod.POST) public
阅读全文
posted @ 2020-03-25 14:31 xiondun
阅读(6863)
评论(0)
推荐(0)
2020年3月24日
centos命令提示符显示完整目录
摘要: centos命令提示符显示完整目录 配置方法: 1.编辑profile文件,添加环境变量PS1 su root //切换到root用户 vim /etc/profile //打开profile文件 在profile内容最下面添加如下内容: export PS1='[\u@\h `pwd`]\$' 2
阅读全文
posted @ 2020-03-24 20:49 xiondun
阅读(1015)
评论(0)
推荐(0)
2020年3月23日
tp5跨域问题
摘要: header("Access-Control-Allow-Origin:*"); header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, X-Token"); header("Acce
阅读全文
posted @ 2020-03-23 15:20 xiondun
阅读(268)
评论(0)
推荐(0)
2020年3月20日
centOS7添加开机启动服务/执行脚本
摘要: centOS7添加开机启动服务/执行脚本 1 开机启动服务 /etc/rc.d/rc.local 后追加shell脚本 在centos7中添加开机自启服务非常方便,只需要两条命令(以Jenkins为例): #设置jenkins服务为自启动服务 systemctl enable jenkins.ser
阅读全文
posted @ 2020-03-20 19:27 xiondun
阅读(995)
评论(0)
推荐(0)
PHP curl请求封装
摘要: /** * @Description: curl请求 * @Author: Yang * @param $url * @param null $data * @param string $method * @param array $header * @param bool $https * @pa
阅读全文
posted @ 2020-03-20 14:50 xiondun
阅读(2260)
评论(0)
推荐(0)
2020年3月19日
Python 操作GridFS
摘要: import pymongo from pymongo import MongoClient from gridfs import GridFS class GFS(object): def __init__(self, file_db,file_table): self.file_db = fil
阅读全文
posted @ 2020-03-19 15:12 xiondun
阅读(2838)
评论(0)
推荐(1)
上一页
1
···
23
24
25
26
27
28
29
30
31
下一页
公告