会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Maple_feng
python哲学思想:“如果看起来像鸭子,听起来像鸭子,就可以把它当作鸭子”。因此python对象的接口力求简单而且统一,类似其他语言中面向接口编程思想。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
30
下一页
2019年12月14日
shutil库文件的操作
摘要: 一、拷贝,移动,改名 import shutil old_file=r"C:\Users\ffm11\Desktop\AI.docx" new_file=r"C:\Users\ffm11\Desktop\AI_new.docx" # 拷贝文件和权限,不能覆盖目标文件 shutil.copy(old_
阅读全文
posted @ 2019-12-14 21:45 Maple_feng
阅读(520)
评论(0)
推荐(0)
2019年12月8日
搭建appium自动化测试环境
摘要: 注意:请使用不用的手机测试,appium会把微信app重新安装,记录都会清除 一、安装Java JDK JDK下载地址:https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html 安装好后
阅读全文
posted @ 2019-12-08 19:49 Maple_feng
阅读(405)
评论(0)
推荐(0)
python实现语音录入识别
摘要: 一、介绍 1.第一步录音存入本地 2.调用百度语音识别sdk 注意点:百度语音识别对声音源有要求,比特率必须是256kbps 二、代码 #安装必要库 pip install baidu-aip #百度sdk pip install pyaudio import wave import pyaudio
阅读全文
posted @ 2019-12-08 15:51 Maple_feng
阅读(3479)
评论(0)
推荐(0)
2019年11月26日
go解析markdown转成html
摘要: 一、代码 package main import ( "fmt" "github.com/microcosm-cc/bluemonday" "github.com/russross/blackfriday" "io/ioutil" "os" ) func ReadAll(filePth string
阅读全文
posted @ 2019-11-26 16:54 Maple_feng
阅读(1498)
评论(0)
推荐(0)
go指定分隔符格式化时间
摘要: 一、代码 package main import ( "fmt" "strings" "strconv" "time" ) // StrToIntMonth 字符串月份转整数月份 func StrToIntMonth(month string) int { var data = map[string
阅读全文
posted @ 2019-11-26 16:25 Maple_feng
阅读(496)
评论(0)
推荐(0)
go语言中使用正则表达式
摘要: 一、代码 package main import ( "fmt" "regexp" ) func main() { text := `Hello 世界!123 Go.` // 查找连续的小写字母 reg := regexp.MustCompile(`[a-z]+`) fmt.Printf("%q\n
阅读全文
posted @ 2019-11-26 16:00 Maple_feng
阅读(1806)
评论(0)
推荐(0)
2019年11月19日
django_websocket实现简单聊天室
摘要: 一、安装模块 pip install channels pip install channels-redis 二、代码 #websocket_v1/settings.py INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth'
阅读全文
posted @ 2019-11-19 15:41 Maple_feng
阅读(736)
评论(1)
推荐(0)
2019年11月10日
django简单实现短url
摘要: 一、短url的原理 什么是短url: 简单讲就是把普通正常访问的网址,转换成比较短的网址,例如:https://www.cnblogs.com/angelyan/articles/10667354.html#_label0 转成https://dwz.cn/p8VGVkMt 作用优点:短,字符少,美
阅读全文
posted @ 2019-11-10 16:43 Maple_feng
阅读(977)
评论(0)
推荐(1)
2019年10月29日
PyQt5显示日期选择框,获取日期保存文件
摘要: 一、UI显示选择日期,保存到文件
阅读全文
posted @ 2019-10-29 15:12 Maple_feng
阅读(3294)
评论(0)
推荐(1)
2019年10月26日
python解决迅雷下载限制的方法
摘要: 一、转换迅雷下载链接
阅读全文
posted @ 2019-10-26 21:23 Maple_feng
阅读(3574)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
30
下一页
公告