C语言 使用long类型: #include "math.h" int reverse(int x){ int max = pow(2,31)-1; int min = pow(2,31)*-1; long n=0; while (x!=0){ n = n*10 + x%10; x = x/10; ...
分类:
编程语言 时间:
2021-05-23 23:09:40
阅读次数:
0
public class Test { public static void main(String[] args) { // \u000A String s = "Hello World"; String s = "1212"; System.out.println(s); } } 错误:java ...
分类:
编程语言 时间:
2021-05-23 23:09:26
阅读次数:
0
There is a function signFunc(x) that returns: 1 if x is positive. -1 if x is negative. 0 if x is equal to 0. You are given an integer array nums. Let ...
分类:
其他好文 时间:
2021-05-23 23:06:06
阅读次数:
0
/* Optional 容器类常用方法 Optional.of(T t) 创建一个Optional实例 Optional.empty() 创建一个空的Optional实例 Optional.ofNullable(T t) 若t不为null,则创建Optional实例,否则创建空实例 isPresen ...
分类:
编程语言 时间:
2021-05-04 16:30:31
阅读次数:
0
5种变得开心的方法 浪费时间,比如打游戏,什么都不干 停止思考,什么都不要想,刷视频 独处,不要跟别人分享你的痛苦,把自己的痛苦当作世界上最没有意义的事情 网上冲浪 列出痛苦清单,倾吐问题 我(曾经)想死 说不出口 坏主意,雇主想要正能量的阳光男孩 视频中的演讲者是演员,在扮演角色,可能在说谎话 还 ...
分类:
其他好文 时间:
2021-05-04 16:28:05
阅读次数:
0
# 闭包 def outer(x): print('outer:',x) def inner(): print('inner:', x) return inner # 外部函数return的一定是内部函数的函数名 def a(x): print('a:',x) def b(y): print('b: ...
分类:
编程语言 时间:
2021-05-04 16:12:49
阅读次数:
0
一、网络结构 二、代码 import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import tensorflow as tf from tensorflow.keras import layers, optimizers, datasets, Sequen ...
分类:
其他好文 时间:
2021-05-04 15:53:44
阅读次数:
0
python中字符串拼接的三种方法。 1、加号拼接 >>> a = "abcd" >>> b = "xyzm" >>> a 'abcd' >>> b 'xyzm' >>> a + b 'abcdxyzm' 2、join拼接 >>> c = ["abcd","xyzm"] >>> c ['abcd', ...
分类:
编程语言 时间:
2021-05-04 15:30:09
阅读次数:
0
0x0 引言 网络上关于 git rebase 使用的教程不少,其中一篇把远端操作混入了进来,绘制的 commit tree 放了 hash 码也导致乱乱的,个人觉得不妥。git rebase 的理解应该是和远端独立的,用1~2个数字和字母来替代 hash 码会更加直观;同时结合了 git krak ...
分类:
其他好文 时间:
2021-05-04 15:16:48
阅读次数:
0
1、 #include <stdio.h> int main(void) { int i, j, k, a[2][4][3], b[4][3] = {}; for(i = 0; i < 2; i++) { for(j = 0; j < 4; j++) { for(k = 0; k < 3; k++) ...
分类:
编程语言 时间:
2021-05-03 13:01:48
阅读次数:
0