上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 68 下一页
摘要: public class Solution { public static void main(String[] args) { Scanner ip = new Scanner(System.in); System.out.print("Enter radius: "); double radius = ip.nextDouble(); double circumference = 2 * 3. 阅读全文
posted @ 2019-12-09 19:58 anobscureretreat 阅读(147) 评论(0) 推荐(0)
摘要: public class Solution { public static void main(String[] args) { Scanner ip = new Scanner(System.in); System.out.print("Enter a number: "); double n = ip.nextDouble(); ... 阅读全文
posted @ 2019-12-09 19:55 anobscureretreat 阅读(138) 评论(0) 推荐(0)
摘要: public class Solution { public static void main(String[] args) { Scanner ip = new Scanner(System.in); double input = 0; int count = 0; double sum = 0; while (input != -1) { System.out.print("Enter inp 阅读全文
posted @ 2019-12-09 19:49 anobscureretreat 阅读(142) 评论(0) 推荐(0)
摘要: public class Solution { public static void main(String[] args) { Scanner ip = new Scanner(System.in); System.out.print("Enter A: "); int a = ip.nextInt(); System.out.print("Enter B: "); int b = ip.nex 阅读全文
posted @ 2019-12-09 19:47 anobscureretreat 阅读(105) 评论(0) 推荐(0)
摘要: public class Solution { public static void main(String[] args) { int x = 11, y = 7; int res = 1; for (int i = 1; i <= y; i++) res = i * x; System.out.println("The product of " + x + " and " + y + " is 阅读全文
posted @ 2019-12-09 19:43 anobscureretreat 阅读(164) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-12-09 12:30 anobscureretreat 阅读(157) 评论(0) 推荐(0)
摘要: 在一个IP网络范围中,最大的IP地址被保留作为广播地址如某个网络IP范围为192.168.0.xxx,子网掩码为255.255.255.0,则广播地址为192.168.0.255广播数据包会被发送到同一网络上的所有端口,该网络中每台主机都能收到这条消息 阅读全文
posted @ 2019-12-08 22:40 anobscureretreat 阅读(270) 评论(0) 推荐(0)
摘要: python中单引号和双引号是等效的 字符串过长需要换行时,使用\,如 helloworld\ helloworld 或者是直接使用'''(也可以用来注释),如 '''hello world''' 输出let's go的方法 >>> 'let\'s go' "let's go" >>> "let's go" "let's go" >>> '' 阅读全文
posted @ 2019-12-08 22:07 anobscureretreat 阅读(1400) 评论(0) 推荐(0)
摘要: test.sh 运行 阅读全文
posted @ 2019-12-07 20:12 anobscureretreat 阅读(622) 评论(0) 推荐(0)
摘要: 第一个参数 : $1,第二个参数 :$2 test.sh 输出 例子 : 脚本会复制文件(arg1) 到目标地址(arg2) copy.sh 运行 阅读全文
posted @ 2019-12-07 19:54 anobscureretreat 阅读(588) 评论(0) 推荐(0)
摘要: 在写一个shell脚本时,如果你想要检查前一命令是否执行成功,在if条件中使用“$?”可以来检查前一命令的结束状态。 阅读全文
posted @ 2019-12-07 19:46 anobscureretreat 阅读(2671) 评论(0) 推荐(0)
摘要: 方法一: 2>&1 (# ls /usr/share/doc > out.txt 2>&1 ) 方法二: &> (# ls /usr/share/doc &> out.txt ) 阅读全文
posted @ 2019-12-07 19:41 anobscureretreat 阅读(646) 评论(0) 推荐(0)
摘要: 在shell脚本,我们可以使用两种类型的变量: 系统定义变量 用户定义变量 系统变量是由系统系统自己创建的。这些变量通常由大写字母组成,可以通过“set”命令查看。 用户变量由系统用户来生成和定义,变量的值可以通过命令“echo $”查看。 阅读全文
posted @ 2019-12-07 19:38 anobscureretreat 阅读(642) 评论(0) 推荐(0)
摘要: 在Linux操作系统,“/bin/bash”是默认登录shell,是在创建用户时分配的。使用chsh命令可以改变默认的shell。示例如下所示: 阅读全文
posted @ 2019-12-07 19:35 anobscureretreat 阅读(1710) 评论(0) 推荐(0)
摘要: 一个Shell脚本是一个文本文件,包含一个或多个命令。作为系统管理员,我们经常需要使用多个命令来完成一项任务,我们可以添加这些所有命令在一个文本文件(Shell脚本)来完成这些日常工作任务。 阅读全文
posted @ 2019-12-07 19:31 anobscureretreat 阅读(249) 评论(0) 推荐(0)
摘要: 输出 参考: https://www.cnblogs.com/strivepy/p/10436213.html https://www.cnblogs.com/jfl-xx/p/8024596.html https://www.runoob.com/python/func-number-choice 阅读全文
posted @ 2019-12-06 17:29 anobscureretreat 阅读(3729) 评论(0) 推荐(1)
摘要: code 整理后 参考: https://blog.csdn.net/qq562029186/article/details/81203893 阅读全文
posted @ 2019-12-05 16:37 anobscureretreat 阅读(7921) 评论(0) 推荐(0)
摘要: 参考: https://www.linuxidc.com/Linux/2014-03/98041.htm 阅读全文
posted @ 2019-12-04 17:00 anobscureretreat 阅读(3650) 评论(0) 推荐(0)
摘要: file.yaml文件内容 idc_group: name: bx bx: news_bx: news_bx web3_bx: web3_php-fpm_bx task: [1,2,3,4,5,6] 例子 参考: https://www.linuxidc.com/Linux/2016-04/1304 阅读全文
posted @ 2019-12-04 16:39 anobscureretreat 阅读(6482) 评论(0) 推荐(0)
摘要: 输出 参考: https://www.cnblogs.com/liuzhiyun/p/11270278.html 阅读全文
posted @ 2019-12-03 16:16 anobscureretreat 阅读(371) 评论(0) 推荐(0)
摘要: 参考: https://blog.csdn.net/u013425438/article/details/80389176 阅读全文
posted @ 2019-12-03 16:00 anobscureretreat 阅读(8766) 评论(0) 推荐(0)
摘要: 输出 参考: http://c.biancheng.net/view/1114.html 阅读全文
posted @ 2019-12-03 15:55 anobscureretreat 阅读(402) 评论(0) 推荐(0)
摘要: excel code 阅读全文
posted @ 2019-12-03 11:33 anobscureretreat 阅读(4073) 评论(2) 推荐(2)
摘要: #27 import_company def test_import_company(self): headers=self.headers headers["Content-Type"]="multipart/form-data; boundary WebKitFormBoundarywknEiWB8ukxAa0zz" #获取导入模版 file_home = self.import_templa 阅读全文
posted @ 2019-12-02 17:17 anobscureretreat 阅读(211) 评论(0) 推荐(0)
摘要: headers=self.headers #获取导入模版 file_home = self.import_template log.info(file_home) wb = load_workbook(filename=file_home) ws = wb['sheet1'] # 修改产废单位名称,以及备注 ws['b3'] = 'itest产废单位'+self.dic["t"] ws['s3'] 阅读全文
posted @ 2019-12-02 17:16 anobscureretreat 阅读(3639) 评论(0) 推荐(0)
摘要: pip install requests-toolbelt 阅读全文
posted @ 2019-12-02 15:44 anobscureretreat 阅读(5099) 评论(0) 推荐(0)
摘要: #coding=utf8 import time import os def fileTime(file): l=[time.ctime(os.path.getatime(file)),time.ctime(os.path.getctime(file)),time.ctime(os.path.getmtime(file))] return l print("... 阅读全文
posted @ 2019-11-30 15:57 anobscureretreat 阅读(215) 评论(0) 推荐(0)
摘要: 调用命令 参考: https://www.cnblogs.com/landhu/p/9910460.html 阅读全文
posted @ 2019-11-27 00:51 anobscureretreat 阅读(1467) 评论(0) 推荐(0)
摘要: https://www.runoob.com/python3/python3-date-time.html 阅读全文
posted @ 2019-11-26 15:40 anobscureretreat 阅读(395) 评论(0) 推荐(0)
摘要: package testjavapro; import org.junit.*; import org.junit.Test; import static org.junit.Assert.assertEquals; public class testjava { @BeforeClass public static void beforeClass() { ... 阅读全文
posted @ 2019-11-20 14:53 anobscureretreat 阅读(194) 评论(0) 推荐(0)
摘要: 第一次安装Junit,配置环境之后发现添加语句import junit.framework.TestCase; 编译错误 解决:项目右键Properties->Java Build Path->Libraries->add library->Juint->next->finish 阅读全文
posted @ 2019-11-20 14:14 anobscureretreat 阅读(402) 评论(0) 推荐(0)
摘要: 什么是索引 索引是对记录集的多个字段进行排序的方法。在一张表中为一个字段创建一个索引,将创建另外一个数据结构,包含字段数值以及指向相关记录的指针,然后对这个索引结构进行排序,允许在该数据上进行二分法排序。副作用是索引需要额外的磁盘空间,对于MyISAM引擎而言,这些索引是被统一保存在一张表中的,这个 阅读全文
posted @ 2019-11-19 17:50 anobscureretreat 阅读(1168) 评论(0) 推荐(0)
摘要: import configparser config = configparser.ConfigParser() file = 'config.ini' config.read(file) config.add_section('login') config.set('login','username','1111') config.set('login','password','2222') w 阅读全文
posted @ 2019-11-14 19:41 anobscureretreat 阅读(1193) 评论(0) 推荐(0)
摘要: //身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字母x function isCardNo(card) { var reg = /(^\d{15}$)|(^\d{14}(\d|X|x)$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; if(reg.test(card) === false) { ... 阅读全文
posted @ 2019-11-14 11:51 anobscureretreat 阅读(253) 评论(0) 推荐(0)
摘要: for ( ; ; ) { window.alert(" ∧_∧ ババババ\n( ・ω・)=つ≡つ\n(っ ≡つ=つ\n`/ )\n(ノΠU\n何回閉じても無駄ですよ~ww\nm9(^Д^)プギャー!!\n byソル (@0_Infinity_)") } 阅读全文
posted @ 2019-11-13 12:10 anobscureretreat 阅读(530) 评论(0) 推荐(0)
摘要: 在代码层次,在编码之前写测试脚本,可以称为单元测试驱动开发(Unit Test Driven Development,UTDD) 在业务层次,在需求分析时就确定需求(如用户故事)的验收标准,即验收测试驱动开发(Acceptance Test Driven Development,ATDD)。 1、TDD:测试驱动开发(Test-Driven Development) 测试驱动开发是敏捷开发中的一项 阅读全文
posted @ 2019-11-12 20:03 anobscureretreat 阅读(438) 评论(0) 推荐(0)
摘要: command + control + F 窗口最大化 command + shift + C 在桌面上会打开我的电脑,在浏览器中会直接打开开发者工具 command + M (所有)窗口最小化 command + ⬅️ 当行开头 command + ➡️ 当行结尾 command + ⬆️ 文稿开头 command + ⬇️ 文稿结尾 Command+tab:在多个后台运行的应用程序间切换 co 阅读全文
posted @ 2019-11-11 01:57 anobscureretreat 阅读(452) 评论(0) 推荐(0)
摘要: 这是由于某个 Chrome 扩展程序造成的。 打开 chrome://extensions/,逐一关闭排查。我这边是由于“迅雷下载支持”这个扩展引起的,将其关闭即可。 阅读全文
posted @ 2019-11-07 10:55 anobscureretreat 阅读(3040) 评论(0) 推荐(0)
摘要: import subprocess compilePopen = subprocess.Popen('gcc haha',shell=True,stderr=subprocess.PIPE) compilePopen.wait() print('the status code is:',compilePopen.returncode) with open('log','w') as object: 阅读全文
posted @ 2019-10-24 10:09 anobscureretreat 阅读(646) 评论(0) 推荐(0)
摘要: #与选中内容匹配的内容背景色Editor -> Color Scheme -> General -> Code -> Identifier under caret #选中内容前景色Editor -> Color Scheme -> General -> Editor -> Selection for 阅读全文
posted @ 2019-10-21 10:11 anobscureretreat 阅读(1114) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 68 下一页