上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
摘要: 网址:https://npm.taobao.org/mirrors/ 阅读全文
posted @ 2021-04-02 19:43 程序员陈师兄cxycsx 阅读(56) 评论(0) 推荐(0)
摘要: 示例代码如下: import java.util.Scanner; public class HelloWorld{ public static void main (String args[]){ // 创建Scnner对象 Scanner sc = new Scanner(System.in); 阅读全文
posted @ 2021-04-02 17:32 程序员陈师兄cxycsx 阅读(228) 评论(0) 推荐(0)
摘要: 示例代码如下: public class HelloWorld{ public static void main (String args[]){ int a = 6; int b = 5; int c = 8; // int temp = a > b ? a : b; // int max = t 阅读全文
posted @ 2021-04-02 17:30 程序员陈师兄cxycsx 阅读(51) 评论(0) 推荐(0)
摘要: 示例代码如下: int a = 5; int b = 5; String s = a == b ? "equal" : "not equal"; System.out.println(s); 阅读全文
posted @ 2021-04-02 17:22 程序员陈师兄cxycsx 阅读(132) 评论(0) 推荐(0)
摘要: 示例代码如下: 解法1 int n1 = 2; int n2 = 4; int temp; temp = n1; n1 = n2; n2 = temp; System.out.println(n1); System.out.println(n2); 解法2 int n1 = 2; int n2 = 阅读全文
posted @ 2021-04-02 16:42 程序员陈师兄cxycsx 阅读(55) 评论(0) 推荐(0)
摘要: 示例代码如下: int n1 = 2; System.out.println(n1 << 3); 阅读全文
posted @ 2021-04-02 16:18 程序员陈师兄cxycsx 阅读(110) 评论(0) 推荐(0)
摘要: 解法1 class Solution: def moveZeroes(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ index = 0 for i in ra 阅读全文
posted @ 2021-04-02 15:17 程序员陈师兄cxycsx 阅读(49) 评论(0) 推荐(0)
摘要: 解法1 class Solution: def findMaxConsecutiveOnes(self, nums: List[int]) -> int: str_ = '' for item in nums: str_ += str(item) li = str_.split('0') max = 阅读全文
posted @ 2021-04-02 13:24 程序员陈师兄cxycsx 阅读(41) 评论(0) 推荐(0)
摘要: 1.算法引入 # 算法引入 # 题目 a + b + c = 1000, a^2 + b^2 = c^2, 求a, b, c # 方案1 for a in range(1001): for b in range(1001): c = 1000 - a - b if a**2 + b**2 == c* 阅读全文
posted @ 2021-04-02 12:17 程序员陈师兄cxycsx 阅读(50) 评论(0) 推荐(0)
摘要: 运算符 字符串拼接 System.out.println("hell" + 'o'); // hello System.out.println('a' + 1 + "hello"); // 98hello 除法运算 丢弃小数,保留小数部分 int a = 3; int b = 2; int c = 阅读全文
posted @ 2021-04-02 11:11 程序员陈师兄cxycsx 阅读(52) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页