码迷,mamicode.com
首页 >  
搜索关键字:except    ( 6601个结果
salt-api 获取服务器信息,minion批量执行cmd命令
import requests import json try: import cookielib except: import http.cookiejar as cookielib # 使用urllib2请求https出错,做的设置 import ssl context = ssl._creat ...
分类:Windows程序   时间:2019-12-13 23:20:48    阅读次数:231
异常处理及测试
错误异常处理 syntax error:语法错误 zero eivision error:语意错误 ,异常类 用try拦截服务异常 try: x = 5 / 0 print(x)except:#捕获异常 print('程序遇到错误') try: x = 5 / 0 print(x) except Z ...
分类:其他好文   时间:2019-12-13 12:07:32    阅读次数:85
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
问题场景: 在用pip install y:\emailgetcontent\dailycapacitychart\pkgs\pypiwin32 223 py3 none any.whl安装时出现:pip._vendor.urllib3.exceptions.ReadTimeoutError: HT ...
分类:编程语言   时间:2019-12-12 23:49:31    阅读次数:124
c# excel文件追加
这2天我在写一个规约程序,想将数据保存到excel文件中,1分钟存一次,从网上找到的资源都是一次生成的,没有在原来的基础上追加的模式,几经实验如下:(做个标记) 实现功能,新建立一个data.xlsx文件作为模板,放到程序同级目录下,程序会根据日期新生成文件,同一天的数据按照追加的模式写入。 //* ...
分类:Windows程序   时间:2019-12-12 19:58:10    阅读次数:168
python paramiko模块sftp异常:paramiko.ssh_exception.SSHException: EOF during negotiation
python paramiko模块ftp报错: Traceback (most recent call last):File "<stdin>", line 1, in <module>File "/usr/lib/python2.7/dist-packages/paramiko/sftp_clie ...
分类:编程语言   时间:2019-12-12 18:23:02    阅读次数:549
PIE SDK的矢量裁剪矢量文件的Algo
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using PIE.SystemAlgo;using PIE.Carto;us ...
分类:其他好文   时间:2019-12-12 18:02:12    阅读次数:96
数据的存储和读取
# -*- coding:utf-8 -*-from setting import *import osimport sys# print(DATA_DIR)class DataManage(): '''数据的存储和读取''' def __init__(self,): sys.path.append ...
分类:其他好文   时间:2019-12-12 15:22:40    阅读次数:105
Python 处理异常栈模块——traceback 模块
异常捕捉 通常我们在项目中,针对异常的捕捉会使用 try + except,基本形式如下: try: # 主代码 except IndexError as e: # 索引异常时执行这里 logger.debug(e) except KeyError as e: # 关键字异常时执行这里 logger ...
分类:编程语言   时间:2019-12-12 14:53:59    阅读次数:96
实现二分搜索树
二分搜索树具有以下特点: 1 二分搜索树是一颗二叉树 2 二分搜索树每个节点的左子树的值都小于该节点的值,每个节点右子树的值都大于该节点的值 3 任意一个节点的每棵子树都满足二分搜索树的定义 基于第二点我们的需要插入树的元素实现Comparable接口,下面实现二分搜索树的原型,这个类具有二分搜索树 ...
分类:其他好文   时间:2019-12-11 23:15:55    阅读次数:82
Android Telephony分析(七) ---- 接口扩展(异步转同步)
本文是基于上一篇《Android Telephony分析(六) —- 接口扩展(实践篇)》来写的。上一篇介绍的接口扩展的方法需要实现两部分代码:1. 从APP至RIL,发送请求;2. 从RIL至APP,上报结果。 由于这是一个异步请求,所以两部分流程都不能少,导致流程过于复杂。而本文的目的就是为了将 ...
分类:移动开发   时间:2019-12-11 21:10:57    阅读次数:142
6601条   上一页 1 ... 93 94 95 96 97 ... 661 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!