上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 96 下一页
摘要: package com.LearnJava.Thread; class myThread extends Thread{ @Override public void run() { for(int i=0;i<100;i++){ if(i%2==0){ System.out.println(i); 阅读全文
posted @ 2020-02-06 16:51 超级学渣渣 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-02-06 15:32 超级学渣渣 阅读(101) 评论(0) 推荐(0) 编辑
摘要: https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/ 暴力求解会超时。有两种滑动窗口的方法,时间都差不多。 public int lengthOfLongestSubstring(String 阅读全文
posted @ 2020-02-05 21:12 超级学渣渣 阅读(129) 评论(0) 推荐(0) 编辑
摘要: https://leetcode-cn.com/problems/add-two-numbers/ ListNode root = new ListNode(0); ListNode cur = root; int retain = 0; while (l1!=null || l2!=null || 阅读全文
posted @ 2020-02-05 19:26 超级学渣渣 阅读(181) 评论(0) 推荐(0) 编辑
摘要: int [] two_num(int [] nums,int target){ HashMap<Integer, Integer> num_indx = new HashMap<Integer, Integer>(); int [] ans = new int [2]; for(int i=0;i< 阅读全文
posted @ 2020-02-05 17:04 超级学渣渣 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Gradle在编译之前,会检查输入、输出,若无变化,则不会重复编译。这是Gradle编译速度提升的重要原因。 plugins { java } task("getSrcName",{ inputs.dir("src")//输入 outputs.file("info.txt")//输出 doFirst 阅读全文
posted @ 2020-02-04 14:27 超级学渣渣 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 学习使用tf2 视频教程传送门 知识点: loss="sparse_categorical_crossentropy" 这个 sparse是对y进行one-hot操作,如果y已经做过one-hot,则使用 categorical_crossentropy. #!/usr/bin/env python 阅读全文
posted @ 2020-02-03 20:15 超级学渣渣 阅读(488) 评论(0) 推荐(0) 编辑
摘要: task("opendoor",{ var animal = "elephant"//扫描时执行 doFirst{//运行时执行 } }) task("putelephant",{ }).dependsOn("opendoor") task("closedoor",{ }).dependsOn("putelephant") 阅读全文
posted @ 2020-01-09 12:22 超级学渣渣 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 在IDEA中,使用Gradle管理项目 我们新建项目: 这样我们的第一个 gradle管理的文件就完成了。这里main和Girl类: 阅读全文
posted @ 2019-12-30 21:51 超级学渣渣 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 使用vim时,如果你不小心按了 Ctrl + s后,你会发现不能输入任何东西了,像死掉了一般,其实vim并没有死掉,这时vim只是停止向终端输出而已,要想退出这种状态,只需按Ctrl + q 即可恢复正常。 转载于:https://www.cnblogs.com/cocoliu/p/6369749. 阅读全文
posted @ 2019-12-23 10:42 超级学渣渣 阅读(317) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 96 下一页