1 #include <iostream> 2 using namespace std; 3 4 long long f(int x ) 5 { 6 long long tot = 0; 7 while(x) 8 { 9 tot += x % 10; 10 x /= 10; 11 } 12 retu ...
分类:
其他好文 时间:
2021-03-16 13:51:43
阅读次数:
0
增添数据到数据库 package com.jdbc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; im ...
分类:
编程语言 时间:
2021-03-16 11:40:11
阅读次数:
0
Given a string s and a list of strings dict, you need to add a closed pair of bold tag <b> and </b> to wrap the substrings in s that exist in dict. If ...
分类:
其他好文 时间:
2021-03-15 10:29:48
阅读次数:
0
###需要使用的语句 set character_set_client=gbk; set character_set_connection=gbk; set character_set_database=gbk; set character_set_results=gbk; set characte ...
分类:
数据库 时间:
2021-03-09 13:37:35
阅读次数:
0
//安装类库 composer require php-amqplib/php-amqplib //consumer.php消费者代码 require __DIR__ . "/../vendor/autoload.php"; use PhpAmqpLib\Connection\AMQPStreamC ...
分类:
Web程序 时间:
2021-03-08 13:44:12
阅读次数:
0
review 代码的时候,对对象自己的方法调用是否使用this有了点争议,重新看了下think in java,看到了下面的一句话, 我是非常认同这句话的,google了一下,发现确实有人问着问题:https://stackoverflow.com/questions/516768/using-th ...
分类:
编程语言 时间:
2021-03-05 12:53:24
阅读次数:
0
mybatis事务 ? Connection setAutoCommit() 执行查询没有影响 执行增删改时 ? SqlSessionFactory openSession(boolean autoCommit) 默认值就是false 开启事务 ? SqlSession对象 commit(),如果在 ...
分类:
其他好文 时间:
2021-03-03 12:09:45
阅读次数:
0
链接数据库 public static void main(String[] args) { //简约方式 try { Connection conn = DriverManager.getConnection("jdbc:mysql:/mysql?user=aa"); Statement st = ...
分类:
数据库 时间:
2021-03-02 12:02:39
阅读次数:
0
一、sqlachemy(是一个orm框架) 1 orm框,可以独立出来用 2 orm执行原生sql 生成engine(链接池) 详见上一篇博客 engine = create_engine() 获取链接 conn = engine.raw_connection() 后续就一样了 3 创建表,删除表和 ...
分类:
数据库 时间:
2021-02-26 13:16:19
阅读次数:
0
无法连接raw.githubusercontent.com curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused 打开网站 https://www.ipaddress.com/ 查询 ...
分类:
其他好文 时间:
2021-02-23 14:23:50
阅读次数:
0