摘要:
1. #快速生成1,2,3,..., 100数字列表: print([i for i in range(1,101)]) 2. #快速生成001,002,003,...,100数字列表: print([f"{i:03}" for i in range(1,101)]) 或者不用f-string pr 阅读全文
posted @ 2020-05-29 09:07
profesor
阅读(2507)评论(0)推荐(1)
摘要:
JAVA: import static java.lang.System.out; public class Ternary { public static void main(String[] args) { int a = 4, b = 5; out.println(++a == b-- ? a 阅读全文
posted @ 2020-05-27 09:45
profesor
阅读(213)评论(0)推荐(0)
摘要:
JAVA public class Args { public static void main(String[] args) { // for (String arg : args) // System.out.println(arg); //或者下面的遍历方法 for (int i = 0; i 阅读全文
posted @ 2020-05-26 23:38
profesor
阅读(210)评论(0)推荐(0)