Account: package com.aff.ex; public class Account { private int id;// 账号 private double balance;// 余额 private double annualInterestRate;// 年利率 public ...
分类:
其他好文 时间:
2020-03-18 09:32:16
阅读次数:
58
异常: 异常是指程序中的例外,违例,影响程序正常执行的情况。 异常机制是指程序出现错误后,程序的处理方法。 当出现错误后,程序的执行流程发生改变,程序的控制权转移到异常处理。 异常定义:一个try必须至少有一个except,并且当有一个except执行后,后面的except都不会再去执行 注意:ex ...
分类:
其他好文 时间:
2020-03-17 14:15:23
阅读次数:
55
重装Mysql时遇到The service already exists! The current server installed:错误,在网上查询在dos命令行下执行sc query mysql 和 sc delete mysql即可,但我偏偏一直打开的是win10系统的Windows Powe ...
分类:
数据库 时间:
2020-03-17 08:02:23
阅读次数:
238
django.db.utils.InternalError: (1050, "Table 'app01_book_author' already exists") 解决方法: python manage.py migrate books --fake ...
分类:
数据库 时间:
2020-03-16 23:13:30
阅读次数:
84
分类 编译时异常: 无法通过编译,必须显示处理。Exception下非RuntimeException类(Run..也是Ex..的子类),如IOException、SQLException等 运行时异常: 都是RuntimeException类及其子类异常,如NullPointerException ...
分类:
编程语言 时间:
2020-03-16 20:28:33
阅读次数:
61
Executors提供了三个经典的线程池创建方式 ExecutorService threadPool = Executors.newFixedThreadPool(int) ExecutorService threadPool = Executors.newSingleThreadPool()Ex ...
分类:
编程语言 时间:
2020-03-16 12:54:57
阅读次数:
56
1. rand7生成rand10 1 # The rand7() API is already defined for you. 2 # def rand7(): 3 # @return a random integer in the range 1 to 7 4 5 class Solution( ...
分类:
其他好文 时间:
2020-03-16 09:38:13
阅读次数:
56
问题: 给出给定数组的描述: Example 1: Input: [0,1,2,4,5,7] Output: ["0->2","4->5","7"] Explanation: 0,1,2 form a continuous range; 4,5 form a continuous range. Ex ...
分类:
其他好文 时间:
2020-03-15 15:03:03
阅读次数:
53
built-in function,is python already prepar for us ,anytime we can call built-in function when we needed it . all() dict() help() all([1,2,'') eval('1+ ...
分类:
编程语言 时间:
2020-03-15 11:23:37
阅读次数:
79
运行PHP项目时,一直弹出这个提示 Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warnin ...
分类:
其他好文 时间:
2020-03-15 09:15:00
阅读次数:
60