@Override@Transactional(propagation = Propagation.REQUIRED,isolation= Isolation.REPEATABLE_READ)public User1 hsq_test_read(Integer id) { User1 user1 = ...
分类:
数据库 时间:
2020-06-11 21:55:52
阅读次数:
127
public static String generateCode(String codeUrl, Integer userId, String userName) { Font font = new Font("微软雅黑", Font.PLAIN, 30);// 添加字体的属性设置 String ...
分类:
编程语言 时间:
2020-06-11 19:55:57
阅读次数:
122
1.Python实现字符串反转的几种方法 题目: 在Python环境下用尽可能多的方法反转字符串,例如将s = "abcdef"反转成 "fedcba" 第一种:使用字符串切片 result = s[::-1] 第二种:使用列表的reverse方法 l = list(s) l.reverse() r ...
分类:
编程语言 时间:
2020-06-10 21:16:14
阅读次数:
77
1 name="felix" 2 #方法一: 3 name=name[::-1] 4 #方法二: 5 name2=list(name) 6 name2.reverse() 7 name=''.join(name2) 8 #方法三: 9 from funtools import reduce 10 n ...
分类:
编程语言 时间:
2020-06-10 14:43:56
阅读次数:
79
Given a string s and an integer k. Return the maximum number of vowel letters in any substring of s with length k. Vowel letters in English are (a, e, ...
分类:
其他好文 时间:
2020-06-10 13:25:37
阅读次数:
70
Problem StatementCompute A×B, truncate its fractional part, and print the result as an integer. InputInput is given from Standard Input in the followi ...
分类:
其他好文 时间:
2020-06-10 12:45:39
阅读次数:
90
组件注册 @Configuration、@Bean注册组件 先写一个bean public class Person { private String name; private Integer age; public Person() { } public Person(String name, ...
分类:
编程语言 时间:
2020-06-10 11:23:46
阅读次数:
69
地址 https://leetcode-cn.com/problems/integer-replacement/ 给定一个正整数 n,你可以做如下操作: 1. 如果 n 是偶数,则用 n / 2替换 n。 2. 如果 n 是奇数,则可以用 n + 1或n - 1替换 n。 n 变为 1 所需的最小替 ...
分类:
其他好文 时间:
2020-06-09 23:42:46
阅读次数:
76
给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转。 示例 1: 输入: 123输出: 321 示例 2: 输入: -123输出: -321示例 3: 输入: 120输出: 21 class Solution { public int reverse(int x) { int a ...
分类:
其他好文 时间:
2020-06-09 23:31:56
阅读次数:
68
题目:整数反转: 给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转。 示例 1: 输入: 123 输出: 321 示例 2: 输入: -123 输出: -321 示例 3: 输入: 120 输出: 21 注意: 假设我们的环境只能存储得下 32 位的有符号整数,则其数值范围为 ...
分类:
编程语言 时间:
2020-06-09 18:48:07
阅读次数:
55