<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[hhy_123963的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/hhy_123963</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; hhy_123963]]></copyright><item><title><![CDATA[Mysql内连接外连接区别]]></title><link>https://blog.csdn.net/hhy_123963/article/details/143988400</link><guid>https://blog.csdn.net/hhy_123963/article/details/143988400</guid><author>hhy_123963</author><pubDate>Sat, 23 Nov 2024 10:34:25 +0800</pubDate><description><![CDATA[以某一个表为主表，进行关联查询，不管能不能关联的上，主表的数据都会保留，关联不上的以NULL显示。外连接（outer join）：取出连接表中匹配到的数据，匹配不到的也会保留，其值为NULL。内连接（inner join）：取出两张表中匹配到的数据，匹配不到的不保留。右外连接（right outer join）：以右边的表为主表。左外连接（left outer join）：以左边的表为主表。外连接(outer join)]]></description><category></category></item><item><title><![CDATA[python-json]]></title><link>https://blog.csdn.net/hhy_123963/article/details/120763634</link><guid>https://blog.csdn.net/hhy_123963/article/details/120763634</guid><author>hhy_123963</author><pubDate>Thu, 14 Oct 2021 14:41:05 +0800</pubDate><description><![CDATA[Json模块详解

序列化：把Python的对象编码转换成json格式字符串

反序列化：把json格式字符串解码为Python数据对象

python-json对应关系表



先看json库的常见方法：



jsom.dumps():对数据进行编码

json.loads():对数据进行解码

对Python的内置数据结构进行序列化合反序列化的处理，详见案例








...]]></description><category></category></item><item><title><![CDATA[python基本面试题]]></title><link>https://blog.csdn.net/hhy_123963/article/details/120569824</link><guid>https://blog.csdn.net/hhy_123963/article/details/120569824</guid><author>hhy_123963</author><pubDate>Thu, 30 Sep 2021 17:22:52 +0800</pubDate><description><![CDATA[1、统计

统计在一个队列中的数字，有多少个正数、有多少负数





2、排序





3、字符串切片

字符串“paxbyczdj”，变成abcd

字符串 "paxbyczdj"，如果得到结果“abcd”





4、字符串切割

字符串“hello_world_python_java”，变成['hello', 'world', 'python', 'java']





5、格式化输出，数字8，变成0008





6、交换，如果将a，b两个值交换





7、队列，如果将一组...]]></description><category></category></item><item><title><![CDATA[pytest 常用命令]]></title><link>https://blog.csdn.net/hhy_123963/article/details/120569730</link><guid>https://blog.csdn.net/hhy_123963/article/details/120569730</guid><author>hhy_123963</author><pubDate>Thu, 30 Sep 2021 17:08:49 +0800</pubDate><description><![CDATA[pytest支持自定义标记，可以将项目划分多个模块，然后按照指定模块执行

mark标记

demo test_m.py



只运行web标记的测，在cmd运行的时候加-m web，指定参数值web

pytest -v -m web/直接在编辑器使用["-s", "test_server.py", "-m=web]

如果不想执行标记web的用例，就使用pytest -v -m “not web”

-v 指定函数节点id

如想要运行某个.py模块下类的一个用例，如TestClass里面的test_m]]></description><category></category></item><item><title><![CDATA[jemter响应结果乱码解决方案]]></title><link>https://blog.csdn.net/hhy_123963/article/details/120569655</link><guid>https://blog.csdn.net/hhy_123963/article/details/120569655</guid><author>hhy_123963</author><pubDate>Thu, 30 Sep 2021 17:06:01 +0800</pubDate><description><![CDATA[step1：指定请求节点下，新建后置控制器"BeanShell PostProcessor"

step2：其脚本框中输入：prev.setDataEncoding("UTF-8");

step3：保存
]]></description><category></category></item><item><title><![CDATA[Pyinstaller的使用]]></title><link>https://blog.csdn.net/hhy_123963/article/details/113741607</link><guid>https://blog.csdn.net/hhy_123963/article/details/113741607</guid><author>hhy_123963</author><pubDate>Sun, 07 Feb 2021 15:15:55 +0800</pubDate><description><![CDATA[官网：http://www.pyinstaller.org/
	pyinstaller库是Python的第三方库，需要安装，其安装是通过cmd使用命令：pip install pyinstaller
	Pyinstaller库的常用参数
	


5、pyinstaller的简单使用

（cmd命令行）pyinstaller -i *.ico -F .py

备注：ico图标可通过下载图片，然后通过格式工厂转换成格式：.ico

执行上面命令，将看到详细的生成过程。当生成完成后，将会在目录下看到多了一...]]></description><category></category></item><item><title><![CDATA[Python基础：列表、字典]]></title><link>https://blog.csdn.net/hhy_123963/article/details/109121608</link><guid>https://blog.csdn.net/hhy_123963/article/details/109121608</guid><author>hhy_123963</author><pubDate>Fri, 16 Oct 2020 18:02:26 +0800</pubDate><description><![CDATA[# python 常用函数、列表、字典使用
# 1、abs():返回一个数的绝对值，可以说整数/浮点数
t = 18
q=-0.15
print(abs(t))
print (abs(q))

# 2、hex():将一个整数转换成小写的16进制字符串，结果以“0x"为前缀
print(oct(255))


# 3、divmod(a,b):计算a、b的商和余数
num = divmod(12,5)
print(num)

# 4、max(),min(),sum()
list = [11,22,55,78].]]></description><category></category></item><item><title><![CDATA[mysql常用查询语句]]></title><link>https://blog.csdn.net/hhy_123963/article/details/108999425</link><guid>https://blog.csdn.net/hhy_123963/article/details/108999425</guid><author>hhy_123963</author><pubDate>Sat, 10 Oct 2020 16:20:12 +0800</pubDate><description><![CDATA[1、查询指定月份数据
SELECT * FROM 表名 WHERE YEAR(时间字段名)='2020' AND MONTH(时间字段名)='9'
 
2、查询某天的数据
select * from 表名 where to_days(时间字段名) = to_days(now());

3、查询当前时间段的数据
SELECT * FROM 表名 WHERE 字段名&gt;NOW()-INTERVAL 2 HOUR;

4、查询近2天的数据
SELECT * FROM 表名 WHERE TO_DAYS(....]]></description><category></category></item><item><title><![CDATA[python：读取excel并将其数据插入mysql]]></title><link>https://blog.csdn.net/hhy_123963/article/details/100610573</link><guid>https://blog.csdn.net/hhy_123963/article/details/100610573</guid><author>hhy_123963</author><pubDate>Sat, 07 Sep 2019 23:05:40 +0800</pubDate><description><![CDATA[在工作中，经常会遇到需要准备批量的数据，现将基于python语言，读取excel数据并将数据插入数据库表的操作作简单记录：


# coding:utf-8
import pymysql
import xlrd
# 从excel读取数据写入mysql


def excel_to_mysql(filename):
    conn = pymysql.connect(host="localhost...]]></description><category></category></item><item><title><![CDATA[python：mysql的基本使用方法]]></title><link>https://blog.csdn.net/hhy_123963/article/details/100609980</link><guid>https://blog.csdn.net/hhy_123963/article/details/100609980</guid><author>hhy_123963</author><pubDate>Sat, 07 Sep 2019 22:58:47 +0800</pubDate><description><![CDATA[前提：

当前mysql是比较常用的数据库，先将使用python连接mysql的相关操作作简单记录

前提条件：1、安装python及其相关的软件并配置环境变量        

         2、已安装mysql环境

        3、安装pymysql

          cmd执行安装命令：pip insta...]]></description><category></category></item><item><title><![CDATA[python使用xlrd读取excel数据，整数变小数的解决办法]]></title><link>https://blog.csdn.net/hhy_123963/article/details/100597103</link><guid>https://blog.csdn.net/hhy_123963/article/details/100597103</guid><author>hhy_123963</author><pubDate>Sat, 07 Sep 2019 14:43:38 +0800</pubDate><description><![CDATA[在使用python读取excel时，输出的整数变成了小数，如下



解决方案：

方法一：将excel指定字段的格式设置成文本



方法二：通过读取excel，然后在使用python对其进行处理






...]]></description><category></category></item><item><title><![CDATA[如何在Postman中动态获取cookie，并设置环境变量]]></title><link>https://blog.csdn.net/hhy_123963/article/details/88567948</link><guid>https://blog.csdn.net/hhy_123963/article/details/88567948</guid><author>hhy_123963</author><pubDate>Fri, 15 Mar 2019 10:58:27 +0800</pubDate><description><![CDATA[在工作中经常会遇到需要登录的状态，如果直接发送请求，会提示：请先登录。解放方案如下：



1、点击设置、选择：Manage Envirnments



2、创建cookie名



3、在登录请求设置全局变量，如下：

#先获取响应头中的set-cookie字段

var jsondata = postman.getResponseHeader("set-cookie");
console....]]></description><category></category></item><item><title><![CDATA[cmd切换不到指定的位置解决方法]]></title><link>https://blog.csdn.net/hhy_123963/article/details/87971319</link><guid>https://blog.csdn.net/hhy_123963/article/details/87971319</guid><author>hhy_123963</author><pubDate>Wed, 27 Feb 2019 13:50:16 +0800</pubDate><description><![CDATA[在cmd中，切换位置失败，如下：



其解决方法：在切换的位置前加：/d 

]]></description><category></category></item><item><title><![CDATA[windows环境python2.7安装MySQLdb]]></title><link>https://blog.csdn.net/hhy_123963/article/details/87878373</link><guid>https://blog.csdn.net/hhy_123963/article/details/87878373</guid><author>hhy_123963</author><pubDate>Fri, 22 Feb 2019 14:49:52 +0800</pubDate><description><![CDATA[win7 64位，并且安装python不是默认路径，使用pip和mysql-python的exe文件安装都失败了。

后在网上找到一种安装方法，记录下。

确保安装了wheel，我的2.7默认安装了

pip install wheel

去这个网站查找whl格式的MYSQL-python

http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-pyth...]]></description><category></category></item><item><title><![CDATA[Navicat连接MySQL 8.0.15报错：2059 - authentication plugin 'caching_sha2_password'的解决办法]]></title><link>https://blog.csdn.net/hhy_123963/article/details/87862781</link><guid>https://blog.csdn.net/hhy_123963/article/details/87862781</guid><author>hhy_123963</author><pubDate>Thu, 21 Feb 2019 16:02:12 +0800</pubDate><description><![CDATA[Navicat连接MySQL 8.0.15时报错：



其解决方案：



备注：

a、如果是本地，则用localhost即可；

b、如果是远程访问 mysql的话，需要将localhost改成%；
c、password是root的密码，使用时也要进行对应修改。...]]></description><category></category></item><item><title><![CDATA[MySQL 8.0.15初始化密码报错，解决方案]]></title><link>https://blog.csdn.net/hhy_123963/article/details/87857295</link><guid>https://blog.csdn.net/hhy_123963/article/details/87857295</guid><author>hhy_123963</author><pubDate>Thu, 21 Feb 2019 11:10:13 +0800</pubDate><description><![CDATA[登录MySQL之后，执行创建数据库的操作，报错了，报错信息如下：



其解决方案：

]]></description><category></category></item><item><title><![CDATA[Xshell连接Linux服务器]]></title><link>https://blog.csdn.net/hhy_123963/article/details/87709802</link><guid>https://blog.csdn.net/hhy_123963/article/details/87709802</guid><author>hhy_123963</author><pubDate>Tue, 19 Feb 2019 15:06:31 +0800</pubDate><description><![CDATA[方法一

1、下载Xshell

2、下载完成之后，按照提示安装即可

3、打开Xshell，打开时候会弹出新建连接的窗口。



4、在窗口填写连接服务器的信息

name：可任意填写

host：linux服务器的ip地址

Port Number：默认 22 即可



5、填写完成之后，点击左导航Login Prompts，弹出新的窗口，填写信息

User Name Prompt：设置L...]]></description><category></category></item><item><title><![CDATA[Apache ab并发负载压力测试]]></title><link>https://blog.csdn.net/hhy_123963/article/details/87707164</link><guid>https://blog.csdn.net/hhy_123963/article/details/87707164</guid><author>hhy_123963</author><pubDate>Tue, 19 Feb 2019 14:29:55 +0800</pubDate><description><![CDATA[ab命令原理 
Apache的ab命令模拟多线程并发请求，测试服务器负载压力，也可以测试nginx、lighthttp、IIS等其它Web服务器的压力。 
ab命令对发出负载的计算机要求很低，既不会占用很多CPU，也不会占用太多的内存，但却会给目标服务器造成巨大的负载，因此是某些DDOS攻击之必备良药，老少皆宜。自己使用也须谨慎。否则一次上太多的负载，造成目标服务器直接因内存耗光死机，而不得不硬重...]]></description><category></category></item><item><title><![CDATA[adb命令获取当前界面Activity]]></title><link>https://blog.csdn.net/hhy_123963/article/details/87173261</link><guid>https://blog.csdn.net/hhy_123963/article/details/87173261</guid><author>hhy_123963</author><pubDate>Wed, 13 Feb 2019 12:47:15 +0800</pubDate><description><![CDATA[真机/模拟器连接成功，且打开程序的某页面。然后在cmd输入命令：

方法一

adb shell dumpsys activity | findstr &quot;mFocusedActivity&quot;



方法二

adb shell dumpsys activity activities

...]]></description><category></category></item><item><title><![CDATA[monkey日志分析]]></title><link>https://blog.csdn.net/hhy_123963/article/details/87103746</link><guid>https://blog.csdn.net/hhy_123963/article/details/87103746</guid><author>hhy_123963</author><pubDate>Tue, 12 Feb 2019 18:06:36 +0800</pubDate><description><![CDATA[monkey日志分析

app在功能测试基本完成之后，会通过monkey专项测试，验证程序的稳定性

首先在拿到一个monkey报告时可以从文首看到

①该次monkey的seed值

②执行次数（count）

③执行的对应包名（AllowPackage）

④执行的类别（IncludeCategory

⑤每种事件执行的百分比（Event percentages，这个网上到处都有对应的值，此处...]]></description><category></category></item></channel></rss>