2019年11月12日
摘要:
首先: 安装pipenv pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv 使用国内源安装pipenv 创建文件夹 mkdir fisher 进入文件夹,执行pipenv shell 启动pipenv 在pipenv虚拟环
阅读全文
posted @ 2019-11-12 08:06
闪亮的金子
阅读(267)
推荐(0)
2019年11月9日
摘要:
1、出现“http/ 1.1 404 not found”这个问题怎么解决? https://zhidao.baidu.com/question/2080009979591917148.html
阅读全文
posted @ 2019-11-09 14:26
闪亮的金子
阅读(402)
推荐(0)
2019年11月8日
摘要:
一、客户登录验证 在使用接口前,需要对客户进行登录验证 enums.py文件代码: #定义枚举,客户端登录的方式有很多种形式:邮箱登录、手机登录、微信小程序登录、微信公众号登录 class ClientTypeEnum(Enum): USER_EMAIL = 100 # 邮箱 USER_MOBILE
阅读全文
posted @ 2019-11-08 15:46
闪亮的金子
阅读(226)
推荐(0)
摘要:
一、使用pymysql模块操作MYSQL 导入pymysql模块: pip install pymysql 1、增删改 import pymysql # 定义数据库连接信息 config = { 'host': 'localhost', 'port': 3306, 'user': 'root', '
阅读全文
posted @ 2019-11-08 07:48
闪亮的金子
阅读(194)
推荐(0)
2019年11月7日
摘要:
一、导入模块的两种方式 方式1:import 包名.模块名 [ as 别名]方式2:from 包名 import 模块名 from 包名.模块名 import 变量|函数|类 # 方式1 import py04_模块.mymodule print(py04_模块.mymodule.a) # 调用模块
阅读全文
posted @ 2019-11-07 21:55
闪亮的金子
阅读(165)
推荐(0)
2019年11月6日
摘要:
1、在线JSON代码格式化 https://jsoncompare.com/#!/simple/ 2、Requests https://requests-docs-cn.readthedocs.io/zh_CN/latest/ 3、新浪微博开放平台-首页 https://open.weibo.com
阅读全文
posted @ 2019-11-06 13:16
闪亮的金子
阅读(139)
推荐(0)
2019年11月4日
摘要:
1、DLL封装登录框架实现代码复用 https://www.cnblogs.com/wenwencao/articles/1333659.html
阅读全文
posted @ 2019-11-04 20:15
闪亮的金子
阅读(110)
推荐(0)
摘要:
1、Python中常用数据库访问接口模块 专用数据库连接模块——MySQL、SQLite、PostgreSQL、Oracle、IBM DB2、Infomix、Interbase、Sybase、SQL Server通用数据库接口模块——ODBC、JDBC https://blog.csdn.net/d
阅读全文
posted @ 2019-11-04 19:16
闪亮的金子
阅读(142)
推荐(0)
2019年10月31日
摘要:
用netstat -an查看监听的端口 netsh firewall show statenetsh firewall show config 用netsh.exe程序设置端口: 数据收集 收起该表格展开该表格命令 说明 show allowedprogram 显示允许的程序。 show confi
阅读全文
posted @ 2019-10-31 22:13
闪亮的金子
阅读(491)
推荐(0)
摘要:
事例说明 IP地址为192.168.1.100的服务器上安装了SQLServer2000,它有两个实例,分别为:默认实例——JLW和另外新建的实例——JLW\TEST SQLServer网络实用工具中,设置实例JLW\TEST对应TCP/IP,端口为1434,登录用户sa,对应密码123 现客户端要
阅读全文
posted @ 2019-10-31 22:00
闪亮的金子
阅读(3222)
推荐(0)