SQLiteConnection con = new SQLiteConnection("Data Source=" + @"C:/sqlite/student.db;Version=3"); ...
分类:
数据库 时间:
2020-03-21 21:38:23
阅读次数:
144
1 // Forward declaration of isBadVersion API. 2 bool isBadVersion(int version); 3 4 class Solution 5 { 6 public: 7 int firstBadVersion(int n) 8 { 9 in ...
分类:
其他好文 时间:
2020-03-21 21:15:08
阅读次数:
62
如何将Object类型转换为int类型 Object object = null; try { Integer.parseInt(object.toString()); } catch (NumberFormatException e) {} 也可以先判定一下是否是Integer //可以先判定一下 ...
分类:
编程语言 时间:
2020-03-21 19:45:34
阅读次数:
126
Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Example: Input: n = 10 Outpu ...
分类:
其他好文 时间:
2020-03-21 19:41:35
阅读次数:
75
添加依赖 在application.yml文件中添加属性 数据库连接池 1、Spring Boot默认使用tomcat的DataSource。 使用druid数据源 1、首先把druid的依赖添加进项目。 2、配置文件中指定数据源的类型spring.datasource.type=DruidData ...
分类:
数据库 时间:
2020-03-21 18:32:47
阅读次数:
76
1. maven依赖 <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <version>3.1.0</version> </dependency> <dependency> <groupId ...
分类:
编程语言 时间:
2020-03-21 16:40:48
阅读次数:
88
环境: vscode 1.43.1 Ubuntu 18.04.1 LTS x86_64 Python 3.6.8 pip3: Package Version astroid 2.3.3 autopep8 1.5 Django 2.0 isort 4.3.21 lazy-object-proxy 1. ...
分类:
其他好文 时间:
2020-03-21 16:29:01
阅读次数:
114
题目链接:http://codeforces.com/problemset/problem/17/D Nick is attracted by everything unconventional. He doesn't like decimal number system any more, and ...
分类:
其他好文 时间:
2020-03-21 16:23:31
阅读次数:
65
web.xml 各版本的 Schema 头部声明 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "htt ...
分类:
Web程序 时间:
2020-03-21 16:22:57
阅读次数:
72
os.walk函数的用法 (遍历文件夹下文件并获得路径) 我们在使用python时时常会遇到调用某些文件的需求,这时我们就需要得到这些文件的路径。python强大的自带os模块使得获得路径变得很容易。 下面介绍如何使用os.walk函数来遍历文件夹及子文件夹下所有文件并得到路径。 os.walk的完 ...
分类:
编程语言 时间:
2020-03-21 14:30:43
阅读次数:
69