方式一: try 检测范围 except Exception[ as reason]: 出现异常(Exception)后的处理代码 方式二: 方式一: 运行结果: [fengjunjie@localhost ~]$ python3 test.py 文件出错拉T_T ...
分类:
编程语言 时间:
2017-09-11 15:18:11
阅读次数:
160
前台:用Uploader插件写好前台 var uploader1 = null; var uploadExcelUrl = '@Url.Action(uploadAction, controllerName)';//后台获取前台导入的文件 function InitUploader() { uplo ...
分类:
Web程序 时间:
2017-09-08 11:50:12
阅读次数:
197
--清空两个字符中间的空格 update IMPORT_TEST a set a.name = REGEXP_REPLACE(a.name,'( ){1,}', '') where a.reason is not null --字符串替换 update IMPORT_TEST a set a.nam ...
分类:
数据库 时间:
2017-09-05 19:07:19
阅读次数:
157
Oracle数据库误删文件导致rman备份报错RMAN-06169解决办法 可能是误删文件导致在使用rman备份时候出现以下提示 RMAN-06169: could not read file header for datafile 15 error reason 1 解决办法 查看数据15文件是什 ...
分类:
数据库 时间:
2017-08-30 20:05:35
阅读次数:
649
1. sqlite3_open 死锁 * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP frame #0: 0x0000000116e22c22 libsystem_kernel.dylib`__ps ...
分类:
数据库 时间:
2017-08-20 10:19:15
阅读次数:
238
The Kobe series has long been one of my favorite signature lines in the basketball shoe industry. The first pair of basketball shoes that I bought on ...
分类:
其他好文 时间:
2017-08-18 11:15:10
阅读次数:
169
今天遇到一个奇葩问题, 1.r.request.post(url) 2..print r. status_code 居然第一步就报错了,原因是url不正确,按道理应该可以走到第二步然后输入404的 ...
分类:
编程语言 时间:
2017-08-17 17:23:06
阅读次数:
580
刚接触iOS,依照教程操作执行出现错误 Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier Ce ...
分类:
移动开发 时间:
2017-08-16 23:20:40
阅读次数:
292
【1】单一职责原则: 要求一个接口或者类只有一个原因引起变化; 也就是一个接口或者类只有一个职责,它负责一件事情; There should never be more than one reason for a class to change.【使用范围】适用于类也适用于方法;【建 议】接口一定要 ...
分类:
其他好文 时间:
2017-08-10 15:34:55
阅读次数:
149
Libevent官网:http://libevent.org/ windows 7下编译: 编译环境: windows 7 + VS2010 (1)解压libevent到F:\libevent\libevent-2.0.21-stable (2)打开Microsoft visual studio 2 ...