上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 68 下一页
摘要: Note系列荣耀畅玩系列荣耀V系列荣耀系列麦芒系列畅享系列nova系列p系列mate系列 阅读全文
posted @ 2019-12-31 11:28 anobscureretreat 阅读(190) 评论(0) 推荐(0)
摘要: //print all digits of the given number import java.util.Scanner; public class Numbers { public static void main(String[] args) { int num; Scanner ip = new Scanner(System.in);... 阅读全文
posted @ 2019-12-27 14:19 anobscureretreat 阅读(363) 评论(0) 推荐(0)
摘要: //print all prime numbers within a number import java.util.Scanner; public class Numbers { public static void main(String[] args) { int beg, end; Scanner ip = new Scanner(System.in); System.out.print( 阅读全文
posted @ 2019-12-27 14:18 anobscureretreat 阅读(882) 评论(0) 推荐(0)
摘要: //find n'th prime number import java.util.Scanner; public class Numbers { public static void main(String[] args) { int n, count = 0, i = 2; Scanner ip = new Scanner(System.in); System.out.print("Enter 阅读全文
posted @ 2019-12-27 14:16 anobscureretreat 阅读(759) 评论(0) 推荐(0)
摘要: //Generate n prime numbers import java.util.Scanner; public class Numbers { public static void main(String[] args) { int n, count = 0; Scanner ip = new Scanner(System.in); System.out.print("Enter the 阅读全文
posted @ 2019-12-27 14:14 anobscureretreat 阅读(538) 评论(0) 推荐(0)
摘要: 参考: https://www.cnblogs.com/caicaihong/p/5687522.html http://www.pythonclub.org/python-network-application/urlencode https://www.cnblogs.com/jessicaxu 阅读全文
posted @ 2019-12-26 13:46 anobscureretreat 阅读(395) 评论(0) 推荐(0)
摘要: import sys import os sys.path.append("/".join(os.path.dirname(os.path.abspath(__file__)).split("/")[:-1])) from util.getinfolib import getinfo import lib.requests print(getinfo().url) r=requests.get(g 阅读全文
posted @ 2019-12-26 11:13 anobscureretreat 阅读(179) 评论(0) 推荐(0)
摘要: //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)
摘要: 参考: https://www.cnblogs.com/hcy-fly/p/9008323.html 阅读全文
posted @ 2019-12-23 13:56 anobscureretreat 阅读(944) 评论(0) 推荐(0)
摘要: >>> import datetime >>> >>> i = datetime.datetime.now() >>> print(i.year,i.month,i.day,i.hour,i.minute,i.second) 2020 12 22 06 12 26 >>> 阅读全文
posted @ 2019-12-22 00:54 anobscureretreat 阅读(394) 评论(0) 推荐(0)
摘要: ''' filelist=os.listdir("./report") for i in filelist: if("container" in i): pass else: with open("./report/"+i, 'r') as f: data = json.load(f) if(data["uuid"]=="fac37dfe-c253-458c-96be-820a5b42d589") 阅读全文
posted @ 2019-12-21 17:14 anobscureretreat 阅读(996) 评论(0) 推荐(0)
摘要: linux shell脚本中的延时 还是使用 sleep 或usleep函数。 详细如下: 1、sleep : 默认为秒。 sleep 1s 表示延迟一秒 sleep 1m 表示延迟一分钟 sleep 1h 表示延迟一小时 sleep 1d 表示延迟一天 2、usleep : 默认以微秒。 1s = 1000ms = 1000000us 阅读全文
posted @ 2019-12-21 14:43 anobscureretreat 阅读(8217) 评论(0) 推荐(0)
摘要: 2 3 4 阅读全文
posted @ 2019-12-21 09:42 anobscureretreat 阅读(145) 评论(0) 推荐(0)
摘要: 参考: https://www.jianshu.com/p/020709b130d3 阅读全文
posted @ 2019-12-20 17:29 anobscureretreat 阅读(1310) 评论(1) 推荐(0)
摘要: demo2 demo3 阅读全文
posted @ 2019-12-19 09:59 anobscureretreat 阅读(294) 评论(0) 推荐(0)
摘要: 获取多个整数输入 获取字符串 获取多个字符串 阅读全文
posted @ 2019-12-19 09:53 anobscureretreat 阅读(3070) 评论(0) 推荐(0)
摘要: public class Sample { public static void main(String[] args) { int num = 10; do { System.out.print(num + " "); } while (num != 10); } } OUTPUT: 10 阅读全文
posted @ 2019-12-19 09:52 anobscureretreat 阅读(623) 评论(0) 推荐(0)
摘要: public class Sample { public static void main(String[] args) { int num = 1; while (num <= 10) { System.out.print(num + " "); num++; } } } OUTPUT: 1 2 3 4 5 6 7 8 9 10 阅读全文
posted @ 2019-12-19 09:48 anobscureretreat 阅读(241) 评论(0) 推荐(0)
摘要: demo2 demo3 阅读全文
posted @ 2019-12-19 09:45 anobscureretreat 阅读(247) 评论(0) 推荐(0)
摘要: public class Sample { public static void main(String[] args) { int num1 = 10, num2 = 20; int num3 = 5, num4 = 7; System.out.println(num1++); System.out.println(... 阅读全文
posted @ 2019-12-19 09:44 anobscureretreat 阅读(139) 评论(0) 推荐(0)
摘要: demo2 阅读全文
posted @ 2019-12-19 09:41 anobscureretreat 阅读(343) 评论(0) 推荐(0)
摘要: demo2 阅读全文
posted @ 2019-12-19 09:37 anobscureretreat 阅读(244) 评论(0) 推荐(0)
摘要: public class Sample { public static void main(String[] args) { String str = "Hello world"; System.out.println("String is: " + str); String str2 = new String("Welcome to java"); System.out.println("The 阅读全文
posted @ 2019-12-19 09:35 anobscureretreat 阅读(3026) 评论(0) 推荐(0)
摘要: public class Sample { public static void main(String[] args) { int num; num = 5; System.out.println("the value of num is " + num); } } OUTPUT: the value of num... 阅读全文
posted @ 2019-12-19 09:33 anobscureretreat 阅读(1546) 评论(0) 推荐(0)
摘要: public class Sample { public static void main(String[] args) { // java compiler ignores the comment System.out.println("Java programmer"); /* * comments make c... 阅读全文
posted @ 2019-12-19 09:31 anobscureretreat 阅读(857) 评论(0) 推荐(0)
摘要: public class Sample { public static void main(String[] args) { System.out.print("Hello programmers!!!"); } } OUTPUT: Hello programmers!!! 阅读全文
posted @ 2019-12-19 09:27 anobscureretreat 阅读(118) 评论(0) 推荐(0)
摘要: 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:"); a = s.nex... 阅读全文
posted @ 2019-12-14 09:56 anobscureretreat 阅读(570) 评论(0) 推荐(0)
摘要: 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:"); a = s.nex... 阅读全文
posted @ 2019-12-14 09:55 anobscureretreat 阅读(632) 评论(0) 推荐(0)
摘要: public class Solution { public static void main(String[] args) { int dNum = 1264; String str = ""; while (dNum > 0) { int rem = dNum % 2; str = rem + str; dNum = dNum / 2; } System.out.println("Binary 阅读全文
posted @ 2019-12-10 12:08 anobscureretreat 阅读(164) 评论(0) 推荐(0)
摘要: package testpacknm; import java.util.Scanner; public class testcnm { public static void main(String[] args) { int dNum = 5; System.out.println("Binary is: " + Integer.toBinaryString(dNum)); } } 阅读全文
posted @ 2019-12-10 12:02 anobscureretreat 阅读(88) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 68 下一页