文章分类 -  Python学习

一只菜鸟的学习经历!
摘要:pycharm创建分支十分简单(注意:创建分支是基于当前分支指向的commit创建的(创建分支不是将master分支复制,而是基于你当前的分支进行创建)。**checkout 某个分支,就是把HEAD指向这个分支,而分支指向的是某一个commit。**比如,checkout branch1, 当前H 阅读全文
posted @ 2020-03-24 17:05 蘑菇慢慢 阅读(687) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/youzhouliu/article/details/78952453 https://blog.csdn.net/shuzhupeng/article/details/79387957 xiadongxu0125 xiadongxu0125@163.co 阅读全文
posted @ 2019-11-26 15:07 蘑菇慢慢 阅读(76) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/sanjay_f/article/details/50204883 阅读全文
posted @ 2019-08-06 11:30 蘑菇慢慢 阅读(157) 评论(0) 推荐(0) 编辑
摘要:今天开始学习mock,模拟的第一个接口返回中文却是乱码,请教大神之后问题解决,在此记录。 刚开始写的json文件是这样的,如下: 但是不管通过浏览器访问还是postman或者jmeter,都是乱码的,如下: 解决方法: 在response中添加设置编码格式为“GBK”, "headers":{ "C 阅读全文
posted @ 2019-08-06 10:52 蘑菇慢慢 阅读(672) 评论(0) 推荐(0) 编辑
摘要:1.接口重定向 [ { "description":"重定向到百度", "request":{ "uri":"/redirect" }, "redirectTo":"http://www.baidu.com" }, { "description":"重定向到自己的网页上", "request":{ 阅读全文
posted @ 2019-08-06 10:08 蘑菇慢慢 阅读(102) 评论(0) 推荐(0) 编辑
摘要:1.这是一个带header信息的post请求[ { "description":"这是一个带header信息的post请求", "request":{ "uri":"/post/with/header", "method":"post", "headers":{ "content-type":"ap 阅读全文
posted @ 2019-08-06 10:04 蘑菇慢慢 阅读(116) 评论(0) 推荐(0) 编辑
摘要:1.带cookies的get请求 [ { "description":"这是一个带cookies信息的get请求", "request":{ "uri":"/get/with/cookies", "method":"get", "cookies":{ "login":"true" } }, "res 阅读全文
posted @ 2019-08-06 10:01 蘑菇慢慢 阅读(159) 评论(0) 推荐(0) 编辑
摘要:1.不带参数的post请求[ { "description":"模拟一个post请求", "request":{ "uri":"/postdemo", "method":"post" }, "response":{ "text":"这是一个post请求" } }]注意:post请求无法通过浏览器访问 阅读全文
posted @ 2019-08-06 09:56 蘑菇慢慢 阅读(383) 评论(0) 推荐(0) 编辑
摘要:moco的安装和启用请参考这篇文章 1.不带参数的get请求[ { "description":"模拟一个没有参数的get请求", "request":{ "uri":"/getdemo", "method":"get" }, "response":{ "text":"这是一个没有参数的get请求" 阅读全文
posted @ 2019-08-06 09:45 蘑菇慢慢 阅读(132) 评论(0) 推荐(0) 编辑
摘要:1.moco jar包下载 访问moco下载链接,点击下载“moco-runner-0.10.0-standalone.jar” 或者 https://www.cnblogs.com/yoyoketang/p/9348552.html 2.新建一个project,将下载下来的jar包直接拷进文件夹 阅读全文
posted @ 2019-08-06 09:41 蘑菇慢慢 阅读(462) 评论(0) 推荐(0) 编辑
摘要:f = open(os.path.join(readConfig.proDir, 'testFile', 'emailStyle.txt'))content = f.read()f.close()python 读取 emailStyle.txt 文件时报错 :UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 12... 阅读全文
posted @ 2019-07-30 16:53 蘑菇慢慢 阅读(324) 评论(0) 推荐(0) 编辑
摘要:JSON(JavaScript Object Notation, JS 对象标记) 是一种轻量级的数据交换格式。JSON的数据格式其实就是python里面的字典格式,里面可以包含方括号括起来的数组,也就是python里面的列表。 在python中,有专门处理json格式的模块—— json 和 pi 阅读全文
posted @ 2019-06-27 10:04 蘑菇慢慢 阅读(97) 评论(0) 推荐(0) 编辑
摘要:转: https://blog.csdn.net/qq_42564846/article/details/83991869 阅读全文
posted @ 2019-03-07 09:46 蘑菇慢慢 阅读(95) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_33404395/article/details/80653192 阅读全文
posted @ 2019-03-06 17:48 蘑菇慢慢 阅读(83) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/u011474078/article/details/81427579 SOA、SOAP、RPC、REST、DUBBO的区别与联系 https://blog.csdn.net/a657281084/article/details/78459684 浅谈We 阅读全文
posted @ 2019-03-06 16:35 蘑菇慢慢 阅读(128) 评论(0) 推荐(0) 编辑
摘要:转发:https://www.cnblogs.com/bigben0123/p/7886092.html 阅读全文
posted @ 2019-03-05 16:33 蘑菇慢慢 阅读(127) 评论(0) 推荐(0) 编辑
摘要:1、冒泡排序 核心算法: 在数组x[n]中,从第一个数开始,拿x[i]和后面的数x[i+1]进行比较,如果x[i]比后面的大,就交换两个数的位置,这样遍历一遍数组后,把最大的数据排在了最后面,之后继续循环排剩下的n-1个数,直到完成所有的排序,由于每次都是把最大的排到最后面,就好像冒泡一样,故取名冒 阅读全文
posted @ 2019-03-04 17:42 蘑菇慢慢 阅读(110) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/python##-*-coding:UTF-8-*-import xlrd book = xlrd.open_workbook('Interface_data.xlsx')sheet = book.sheet_by_index(0)rows = sheet.nrowscase_ 阅读全文
posted @ 2019-03-04 11:34 蘑菇慢慢 阅读(156) 评论(0) 推荐(0) 编辑
摘要:import threadingfrom datetime import *#自定义线程数-全局变量THREAD_NUM= 25#自定义单线程循环次数ONE_WORKER_NUM = 10 #总并发数 = 线程数 * 循环次数 #测试代码 def test(): print(datetime.now 阅读全文
posted @ 2019-02-28 17:31 蘑菇慢慢 阅读(185) 评论(0) 推荐(0) 编辑
摘要:安装: pip install paramiko 检查安装结果: pip list 实例代码: import paramiko ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) s 阅读全文
posted @ 2019-02-27 17:19 蘑菇慢慢 阅读(247) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示