文章分类 -  python 学习笔记

摘要:1.自动化测试中,调用邮件模块自动发送邮件时,运行脚本报错: smtplib.SMTPDataError: (554, 'DT:SPM 126 smtp5,jtKowAD3MJz2c1JXLcK2AA--.52114S2 1465021431,please see http://mail.163.c 阅读全文
posted @ 2021-01-03 16:08 热爱技术的小牛 阅读(635) 评论(0) 推荐(0) 编辑
摘要:1.httprunner安装 准备工作 环境:自己的是mac os系统 前提准备:python版本(python3) httprunner安装 pip3 install HttpRunner pip3 install har2case 参考:https://www.cnblogs.com/may18 阅读全文
posted @ 2020-12-20 21:46 热爱技术的小牛 阅读(1354) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2020-05-02 15:40 热爱技术的小牛 阅读(0) 评论(0) 推荐(0) 编辑
摘要:初识pyenv: 它是一个简单的Python版本管理工具。前身为Pythonbrew,pyenv允许你改变全局的python版本,安装多种不同的python版本,设置应用指定的python版本以及创建/管理虚拟的python环境(”virtualenv’s”)。所有这些都在*NIX的机器上完成(Li 阅读全文
posted @ 2020-04-22 23:36 热爱技术的小牛 阅读(305) 评论(0) 推荐(0) 编辑
摘要:我们有的时候会发现,一个电脑上有多个项目,一个依赖 Django 2.2,另一个比较旧的项目又要用 Django 1.11,这时候怎么办呢? 我们需要一个依赖包管理的工具来处理不同的环境。 如果不想搭建这个环境,只想用某一个版本的 Django 也可以,但是推荐学习此内容! 4.1 虚拟环境依赖安装 阅读全文
posted @ 2020-04-22 22:04 热爱技术的小牛 阅读(566) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-09-10 17:00 热爱技术的小牛 阅读(1) 评论(0) 推荐(0) 编辑
摘要:# -*- coding:utf-8 -*- my_dict = {} my_list = ["username", "zhangsan"] print [my_list] # [['username', 'zhangsan']] my_dict.update(dict([my_list])) # {'username': 'zhangsan'}print my_dict 阅读全文
posted @ 2018-10-07 11:30 热爱技术的小牛 阅读(1415) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2018-09-30 15:04 热爱技术的小牛 阅读(1) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/geekleee/article/details/52794826 阅读全文
posted @ 2018-09-21 21:56 热爱技术的小牛 阅读(316) 评论(0) 推荐(0) 编辑
摘要:python中遍历文件的3个方法 更新时间:2014年09月02日 12:02:32 投稿:junjie 我要评论 python中遍历文件的3个方法 更新时间:2014年09月02日 12:02:32 投稿:junjie 我要评论 这篇文章主要介绍了python中遍历文件的3个方法,本文分别使用os 阅读全文
posted @ 2018-09-21 15:58 热爱技术的小牛 阅读(231) 评论(0) 推荐(0) 编辑
摘要:import os path = 'C:\Python27\Lib\site-packages\myLibrary' print os.path.abspath(path) #返回绝对路径 print os.path.basename(path) #返回文件名 'os.path.commonprefix(list) #返回list(多个路径)中,所有path共有的最长的路径。' print... 阅读全文
posted @ 2018-09-21 15:45 热爱技术的小牛 阅读(2050) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2018-09-20 14:33 热爱技术的小牛 阅读(2) 评论(0) 推荐(0) 编辑
摘要:一、pexpect的安装 pexpect作为Python的一个普通模块,可以通过pip安装,也可以通过源码安装 1、pip安装 pip install pexpect pip install pexpect easy_install pexpect easy_install pexpect 2、源码 阅读全文
posted @ 2018-09-17 13:59 热爱技术的小牛 阅读(203) 评论(0) 推荐(0) 编辑

热爱技术的小牛
点击右上角即可分享
微信分享提示