
python
Jincenter
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
selenium安装
【转载】https://www.cnblogs.com/technologylife/p/5829944.htmlhttp://npm.taobao.org/mirrors/chromedriver/下载对应版本的chromedriver,放在python /Scripts下面即可,不用配置path用 Chrome 浏览器来测试from selenium import webdriverbrowser = webdriver.Chrome()browser.get('http://www.b转载 2021-02-22 11:18:08 · 143 阅读 · 0 评论 -
python字典转json报TypeError
1. python字典转json报TypeError如下字典转json出错 TypeError: Object of type ‘int64’ is not JSON serializable para_result = [ [0], [1, 2, 3], [4, 5], [6, 7], [8], [9], [10], [11], [12, 13, 14, 15, 16, 17原创 2020-06-04 17:26:27 · 405 阅读 · 0 评论 -
Git拉取远程分支代码到本地
新建一个空文件,文件名为mygitgit initgit remote add origin git@github.com:aaa.git (注意windows中用ssh,一般平台用http)git fetch origin dev(dev为远程仓库的分支名)git checkout -b dev(本地分支名称) origin/dev(远程分支名称)git pull origin dev(远程分支名称)修改代码然后,,git add .git commit -m “add file”git.转载 2020-06-02 21:06:26 · 5333 阅读 · 0 评论 -
细节决定成败
torch 1.1.0 与 torch1.2.0以上版本有一部分差别优先比对检查原有环境,requirements.txt(安装包环境问题,文件路径等)检查数据,函数调用方式,执行顺序。(打印数据类型,格式)...原创 2020-01-19 22:59:01 · 200 阅读 · 0 评论 -
tensorflow session and graph
tensorflow session and graph1. set_session—clear_session—get_sessionclass Recog_Fish(object): def __init__(self,kerasTextModel,IMGSIZE,keras_anchors,class_names): self.kerasTextModel =...原创 2020-01-19 21:42:04 · 220 阅读 · 0 评论 -
Keras RetinaNet
Keras RetinaNetFAQ:I get the error ModuleNotFoundError: No module named ‘keras_retinanet.utils.compute_overlap’, how do I fix this? Most likely you are running the code from the cloned repository. T...原创 2019-11-06 16:39:01 · 275 阅读 · 0 评论 -
python pip list
pip listPython 运行环境查找库文件时本质是对 sys.path 列表的遍历export PYTHONPATH = pwd:$PYTHONPATHsys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(file)), ‘…/’))将代码包拷贝到 sys.path里面某个路径下(如:site-package...原创 2019-11-02 11:42:05 · 944 阅读 · 0 评论 -
pip安装与使用详解
一、安装pip的几种方式1、 用脚本安装1)下载 get-pip.pywget https://bootstrap.pypa.io/get-pip.py2)运行python get-pip.py即可如果setuptools和wheel没有安装,get-pip.py会安装setuptools和wheel。Options:-no-setuptools不安装setuptools...转载 2019-10-09 22:00:55 · 1386 阅读 · 0 评论 -
notepad++ anaconda python 虚拟环境运行
cmd /k activate & D:Anaconda3\python.exe $(FULL_CURRENT_PATH) & echo= & pause & exit原创 2019-09-21 10:09:05 · 1261 阅读 · 0 评论 -
python ::-1用法
Python [:, :, :] 与 [::, ::, ::-1]python [::]即[起始索引:终止索引:步长]1. [:,:,:]是[::, ::, ::,]的简写, 一般默认步长是1,::就写成了: 同时起始索引默认是0,终止索引默认是len(列表)2. 拿到一个列表,默认步长时,从左到右一个个读取,步长也可为2,3,4…,当为-1时,反向读取,也可为-2,-3…3. 用时比较关...原创 2019-09-18 10:52:34 · 2313 阅读 · 0 评论 -
ubuntu tensorflow 安装 object_detection API
一、安装教程:* https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md二、具体步骤:1. https://github.com/tensorflow/models2. 安装protobuf,编译.proto文件 # From te...原创 2018-07-05 10:51:08 · 726 阅读 · 0 评论 -
python -m xxx.py
转自:http://www.cnblogs.com/softidea/p/5119923.htmlpython -m xxx.py作用是:把xxx.py文件当做模块启动 但是我一直不明白当做模块启动到底有什么用。python xxx.py和python -m xxx.py有什么区别!自问自答:python xxx.pypython -m xxx.py这是两种加载py文...转载 2018-06-01 11:13:41 · 2287 阅读 · 0 评论