异常 目标 了解异常 捕获异常 异常的else 异常finally 异常的传递 自定义异常 一. 了解异常 当检测到一个错误时,解释器就无法继续执行了,反而出现了一些错误的提示,这就是所谓的"异常"。 例如:以r方式打开一个不存在的文件。 open('test.txt', 'r') 二. 异常的写法 ...
分类:
其他好文 时间:
2020-11-19 12:25:11
阅读次数:
3
JDBC四要素 user=root password=abc123 url=jdbc:mysql://localhost:3306/test driverClass=com.mysql.jdbc.Driver driverClass:加载注册驱动,注册已经默认实现 Class.forName(dri ...
分类:
数据库 时间:
2020-11-19 12:22:24
阅读次数:
53
配置开发环境 "scripts": { "serve": "vue-cli-service serve --mode development", "serve:test": "vue-cli-service serve --mode test", "serve:pre": "vue-cli-serv ...
分类:
其他好文 时间:
2020-11-18 12:47:07
阅读次数:
5
插入importimport unittestd = dir (unittest)打印unittestprint(d) 打印结果:E:\python\python.exe F:/test_erp_post_1/test_erp_post/case/1.py['BaseTestSuite', 'Fun ...
分类:
其他好文 时间:
2020-11-18 12:33:16
阅读次数:
5
tips 1.结构体中包含数组,在使用之前,必须实例化,并规定数组的长度; 2.new 出来的长度并不互相影响,new struct test { public string[] strs; } test m_test = new test(); m_test.strs = new string[5 ...
分类:
编程语言 时间:
2020-11-18 12:29:14
阅读次数:
5
MGR验证测试架构:10.0.1.11110.0.1.14710.0.1.192MySQL[test]>select*fromperformance_schema.replication_group_members;+---------------------------+--------------------------------------+-------------+-------
分类:
其他好文 时间:
2020-11-17 12:22:03
阅读次数:
4
一、数据库配置(MYSQL): 打开settings.py,找到下面,配置好MySQL的地址,数据库名称,账号和密码; 直接运行run manage task ,报错:没有安装MySQL插件 django.core.exceptions.ImproperlyConfigured: Error loa ...
分类:
其他好文 时间:
2020-11-17 11:50:25
阅读次数:
5
TEST_F(FooTest, MethodBarDoesAbc) { const std::string input_filepath = "this/package/testdata/myinputfile.dat"; const std::string output_filepath = "t ...
分类:
其他好文 时间:
2020-11-17 11:48:25
阅读次数:
6
摘自:https://blog.csdn.net/u010109732/article/details/79032845?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.cha ...
分类:
其他好文 时间:
2020-11-16 13:50:25
阅读次数:
8
C++ Builder使用FMX多平台框架(FireMonkey)移动(安卓、iOS)APP开发参考书籍 参考书籍: CB10.1 程序开发手册.pdf 这本书的精华是前面200页。 官方的 RAD Studio 10.2 Tokyo Mobile Tutorials.pdf 是一本好书,国内有翻译 ...
分类:
移动开发 时间:
2020-11-16 13:48:42
阅读次数:
18