- 博客(14)
- 资源 (10)
- 收藏
- 关注
原创 layui用layer.open打开子页面并获取子页面的ueditor富文本编辑器的内容
思路就是父页面调用子页面的函数来获取对应的富文本编辑器内容子页面的html
2024-03-06 16:07:05 452
原创 django4版本提示 django.db.utils.NotSupportedError: MySQL 8 or later is required (found 5.7.26)
我最近学习django的时,执行python manage.py migrate报错如下: django.db.utils.NotSupportedError: MySQL 8 or later is required (found 5.7.26).完整目录是:D:\python\Lib\site-packages\django\db\backends\base 打开base目录下的base.py 找到self.check_database_version_supported()并注释掉。
2023-08-17 14:17:13 5050 2
原创 在使用微信小程序开发中用vant2框架中的Uploader 文件上传wx.uploadFile无反应和使用多图上传
vant框架中的Uploader图片上传无反应的问题
2023-04-24 11:54:55 2346
原创 微信小程序二级联动 学校学院 picker
我的需求是一级部门(学校或者学院)跟二级部门(学校或者学院的部门)的联动。json的数据结构是:[ [{id: "1", name: "部门00A"}, {id: "2", name: "部门00B"}], [{id: "4", name: "保定党校", parentId: "1"}, {id: "5", name: "唐山党校", parentId: "1"},{id: "6", name: "石家庄党校", parentId: "1"},{id: "7", name:...
2021-09-23 15:02:14 860
原创 python 利用requests下载远程视频到本地
#远程下载视频def downVideo(videoFile,videoName): #远程读取图片 videoData = requests.get(videoFile) files = r'D:/pythondemo/python3.7.9/uploads/platevideo/' videoSrc = files+videoName #检查路径 if not os.path.exists(files): os.mkdir(fil.
2021-06-04 13:56:56 634
原创 python3用requests下载远程图片到本地
#远程下载图片 def downImg(self,imgFile): #远程读取图片 html = requests.get(imgFile) files = r'D:/pythondemo/python3.7.9/uploads/images/plate/' imgFileList = imgFile.split('/') imgFileDate = imgFileList[-2] imgName .
2021-06-04 13:48:24 453
原创 python3批量修改图片名称和后缀
import osclass img: def reads(self): folderFile = r'C:/Users/Administrator/Desktop/搜狐图片/' for root,dirs,files in os.walk(folderFile): i = 11 for f in files: newName = 'post_%d.jpg' % i .
2021-05-28 11:32:42 120
原创 python在mysql中插入或者更新null空值
sqlQu = 'SELECT id,university_id,grade FROM a_kuakao_school WHERE university_id > 0 ORDER BY university_id ASC' self.cursor.execute(sqlQu) result = self.cursor.fetchall() for row in result: if row[4]: .
2021-04-20 16:06:30 2437
原创 python将word(doc或docx)的内容导入mysql数据库
需求:python操作word文档并把doc或者docx文档中的内容插入到mysql的数据库中解决方法:用python先把doc文件转换成docx文件(这一步也可以不要后续会说明),然后读取docx的文件并另存为htm格式的文件(上一步可以直接把doc文件另存为htm),python根据bs4用到的模块有:importosimportpymysqlimportshutilimporttimefrombs4importBeautifulSoupfromwin32...
2021-04-15 10:23:07 2635
原创 thinkphp5.1开启验证码中文报错Warning: imagettftext(): Could not find/open font
字面意思很好理解就是找不到字体,网上搜了一下又说什么中文路径的,但我看代码和自己的文件目录没有中文的。其实看代码之后发现vendor\topthink\think-captcha\assets\zhttfs目录下边没有对应的字体,只有1.ttf只要从字体库或者下载中文字体补全2.ttf、3.ttf、4.ttf、5.ttf就可以了代码vendor\topthink\think-captcha\src下的Captcha.php $this->fontttf=$ttfs[array_rand($..
2021-03-23 10:35:40 512
原创 dede配置Sphinx 根据关键词 标题和内容优先匹配问题
我之前用的coreseek的版本好像是3.1有些旧需要下载新版本我用的是4.1的版本如何配置请自行百度,配置好了之后需要找到include的目录找arc.searchview.class.php文件下的CountRecordSphinx函数在if($this->mid > 0) { $this->sphinx->SetFilt...
2018-11-07 15:49:40 468
原创 dedecms channel增加keyword根据关键词显示子栏目
设计了一个网站里边有太多的子栏目但子栏目有很多关键词做区分和调用{dede:channel} 并不支持只好自己动手修改了我这里关键词用的是栏目的关键词根据栏目的关键词调用区分我用的版本是5.7找到include\taglib目录下的channel.lib.php找到$attlist = "typeid|0,reid|0,row|100,col|1,type|son,currentsty...
2018-11-07 15:48:43 170
原创 dede5.7配置Sphinx支持typeid、mid
配置好Sphinx之后在dede的后台启用具体配置可以百度,我在这里只说一下Sphinx支持typeid这个查询条件。
2016-07-02 18:30:22 308
post_temp copy.py
2021-04-14
php爱好者留言板_v1.5
2010-07-30
php免费留言板系统
2010-07-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人