搜索到与相关的文章
Python

安装anaconda出现This Python interpreter

安装anaconda后在命令行中出现ThisPythoninterpreterisinacondaenvironment,buttheenvironmenthasnotbeenactivated.Librariesmayfailtoload.Toactivatethisenvironmentpleaseseehttps://conda.io/activation解决方式使用终端或Anaconda提示符执行以下步骤。默认情况下,活动环境---您当前使用的环境

系统 2019-09-27 17:54:25 2338

Python

python之数据存储与读取

1存储数据1.1媒体文件存储媒体文件有两种主要的方式:只获取文件URL链接,或者直接把源文件下载下来。在Python3.x版本中,urllib.request.urlretrieve可以根据文件的URL下载文件:fromurllib.requestimporturlretrievefromurllib.requestimporturlopenfrombs4importBeautifulSouphtml=urlopen("http://www.pythons

系统 2019-09-27 17:54:03 2338

Python

Python学习(二)使用Pycharm创建python工程

1、首先下载安装pycharm,安装后可参考https://blog.csdn.net/u014044812/article/details/97526288激活永久使用。2、File→NewProject3、项目创建成功后,设置一下pycharm创建文件时的模板信息File→Settings#!/usr/bin/envpython#-*-coding:utf-8-*-#@Time:${DATE}${TIME}#@Author:xxx#@File:${NA

系统 2019-09-27 17:52:24 2338

Python

Python3.6+selenium2.53.6自动化测试_读取excel文件

环境:编辑工具:浏览器:安装xlrd安装DDT一分析1目录结构2导入包二代码importxlrdclassExcelUtil():def__init__(self,excelPath,sheetName="Sheet1"):self.data=xlrd.open_workbook(excelPath)self.table=self.data.sheet_by_name(sheetName)#获取第一行作为key值self.keys=self.table.r

系统 2019-09-27 17:50:29 2338

Python

python爬取58同城租房信息

代码:#coding=utf-8importsysimportcsvimportrequestsfrombs4importBeautifulSoup'''遇到不懂的问题?Python学习交流群:821460695满足你的需求,资料都已经上传群文件,可以自行下载!'''reload(sys)sys.setdefaultencoding('utf-8')#请求头设置defdownload(url):db_data=requests.get(url)soup=B

系统 2019-09-27 17:50:27 2338

Python

Python OpenCV 在Ubuntu虚拟机上使用

createtime:2019年7月6日#!usr/bin/python#coding=utf-8importcv2importnumpy#从摄像头采集图像#参数是0,表示打开笔记本的内置摄像头,参数是视频文件路径则打开视频cap=cv2.VideoCapture(0)whileTrue:#getaframe#capture.read()按帧读取视频#ret,frame是capture.read()方法的返回值#其中ret是布尔值,如果读取帧正确,返回Tr

系统 2019-09-27 17:50:03 2338

Python

53K!拿下阿里Python岗,这些技术点全考了!

原文链接:https://edu.csdn.net/topic/python115?utm_source=csdnPython又上热搜了!”,最近笔者在逛脉脉时,发现这样的一条信息:看完后,我相信大家和我一样,what,Python这么时候值钱了?本篇文章,我将帮大家搞定两大疑问:1.Python岗究竟值多少钱?50K是常态还是凤毛菱角?2.面试阿里Python岗,哪些问题最常问?(据说BAT都在考)同时带你揭开阿里面试流程、以及面试题目!现状揭秘:Pyt

系统 2019-09-27 17:49:44 2338

Python

python小课 第14关 查询书籍

classBook:def__init__(self,name,author,comment,state=0):self.name=nameself.author=authorself.comment=commentself.state=statedef__str__(self):status='未借出'ifself.state==1:status='已借出'return'名称:《%s》作者:%s推荐语:%s\n状态:%s'%(self.name,self

系统 2019-09-27 17:48:20 2338

Python

python中的%s%d%s

转发:https://blog.csdn.net/qq_37482544/article/details/63720726

系统 2019-09-27 17:48:11 2338