摘要:
//check prime, find whether the input number is prime number or not import java.util.Scanner; public class Numbers { public static void main(String[] args) { int num; boolean... 阅读全文
posted @ 2019-12-25 20:40
anobscureretreat
阅读(5229)
评论(0)
推荐(0)
摘要:
//find nd smallest among n numbers import java.util.Scanner; public class Numbers { public static void main(String[] args) { int n, temp, min = Integer.MAX_VALUE, secondMin = Integer.MAX_VALUE; Scanne 阅读全文
posted @ 2019-12-25 20:33
anobscureretreat
阅读(662)
评论(0)
推荐(0)
摘要:
//find nd greatest among n numbers import java.util.Scanner; public class Numbers { public static void main(String[] args) { int n, temp, max = Integer.MIN_VALUE, secondMax = Integer... 阅读全文
posted @ 2019-12-25 20:27
anobscureretreat
阅读(703)
评论(0)
推荐(0)
摘要:
//pre increment public class Sample { public static void main(String[] args) {int a, b, c, d, e; Scanner s = new Scanner(System.in); System.out.print("Enter any integer a:"); ... 阅读全文
posted @ 2019-12-25 20:25
anobscureretreat
阅读(351)
评论(0)
推荐(0)
摘要:
//find greatest among n numbers import java.util.Scanner; public class Numbers { public static void main(String[] args) { int n, temp, max = Integer.MIN_VALUE; Scanner ip = new Scanner(System.in); Sys 阅读全文
posted @ 2019-12-25 20:21
anobscureretreat
阅读(1117)
评论(0)
推荐(0)
摘要:
2 求三个数中最小值 3 阅读全文
posted @ 2019-12-25 20:16
anobscureretreat
阅读(3443)
评论(0)
推荐(0)
摘要:
import yaml import os yaml.warnings({'YAMLLoadWarning': False}) filepath = "/".join(os.path.dirname(os.path.abspath(__file__)).split("/")) + "/hostname.yaml" # 写入yaml 文件 # a 追加写入,w,覆盖写入 fw = open(file 阅读全文
posted @ 2019-12-25 19:53
anobscureretreat
阅读(106)
评论(0)
推荐(0)
摘要:
#计算当前时间 import datetime datetime.datetime.now() # 2019-06-30 10:51:14.089271 # 格式化时间 datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") # 2019-06-30 10:52:05 #多加(减)一天 (datetime.datetime.now()... 阅读全文
posted @ 2019-12-25 14:32
anobscureretreat
阅读(2150)
评论(0)
推荐(1)
摘要:
//find greatest among two numbers import java.util.Scanner; public class Numbers { public static void main(String[] args) { int num1, num2; Scanner ip = new Scanner(System.in); System.out.print("Enter 阅读全文
posted @ 2019-12-25 12:23
anobscureretreat
阅读(4135)
评论(1)
推荐(0)
摘要:
2 阅读全文
posted @ 2019-12-25 12:18
anobscureretreat
阅读(3237)
评论(0)
推荐(0)
摘要:
//switch statement import java.util.Scanner; public class Sample { public static void main(String[] args) { int num; Scanner ip = new Scanner(System.in); System.out.print("Enter number between 1 to 4: 阅读全文
posted @ 2019-12-25 12:15
anobscureretreat
阅读(575)
评论(0)
推荐(0)

浙公网安备 33010602011771号