01 2018 档案
摘要:开启线程:Thread-2开启线程:Thread-3Thread-1 processing OneThread-3 processing TwoThread-2 processing ThreeThread-1 processing FourThread-3 processing Five退出线程:
阅读全文
摘要:一、Windows环境中安装Jenkins 原文:http://www.cnblogs.com/yangxia-test/p/4354328.html 在最简单的情况下,Jenkins 只需要两个步骤: 1、下载最新的版本(一个 WAR 文件)。Jenkins官方网址: http://Jenkins
阅读全文
摘要:#!/usr/bin/python是告诉操作系统执行这个脚本的时候,调用/usr/bin下的python解释器; #!/usr/bin/env python这种用法是为了防止操作系统用户没有将python装在默认的/usr/bin路径里。当系统看到这一行的时候,首先会到env设置里查找python的安装路径,再调用对应路径下的解释器程序完成操作。 #!/usr/bin/python相当于写死了p...
阅读全文
摘要:数组: 接口: 类: String类型 :并不是基本类型,但是它使用的非常广泛,常常被误认为是基本类型,实际上是引用类型,包含在类中 string类型是Immutable(不可改变的),一旦创建不能够被改变,
阅读全文
摘要:http://how2j.cn?p=31795
阅读全文
摘要:网络模型7层概述 1 . 物理层:主要定义物理设备标准,如网线的接口类型、光纤的接口类型、各种传输介质的传输速率等。它的主要作用是传输比特流。这一层的数据叫做比特。 2 . 数据链路层:主要将从物理层接收的数据进行MAC地址(网卡的地址)的封装与解封装。常把这一层的数据叫做帧。在这一层工作的设备是交
阅读全文
摘要:1、No enclosing instance of type MyThreadDemo is accessible. Must qualify the allocation with an enclosing instance of type MyThreadDemo (e.g. x.new A(
阅读全文
摘要:Java 并行与并发 注意两个词:并行(Concurrent) 并发(Parallel) 并行:是逻辑上同时发生,指在某一个时间内同时运行多个程序 并发:是物理上同时发生,指在某一个时间点同时运行多个程序 在基于场景描述中,可以这样说: 1、多线程是并发执行的; 2、多核CPU是并行执行的,单个CPU不可以并行执行的;但是这样说可能会混淆概念 在网络上查找到如下定义: ...
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.
阅读全文
摘要:一.数据库 1.创建数据库 create database [if not exists] db_name [character set xxx] [collate xxx] *创建一个名称为freedom的数据库。 create database if not exists freedom; *创
阅读全文
摘要:c#添加了Configuration;后,竟然找不到 ConfigurationManager 这个类,后来才发现: 虽然引用了using System.Configuration;这个包,但是还是不行的。 后来终于找到一个解决方法,就是在解决方案资源管理器里找到类文件选择“引用”,然后右击选择“添
阅读全文
摘要:UDPSever.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; u
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.
阅读全文
摘要:Form1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; usi...
阅读全文
摘要:TCP客户端 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net.Sockets; ...
阅读全文
摘要:主文件:picTime 定时启动任务 #!usr/bin/evn python #coding=utf-8 #支持中文注释 from datetime import date, time, datetime, timedelta import StrToImageBase64 import cmdPic import redis import Fileout import time ...
阅读全文
摘要:主窗体: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Text...
阅读全文
摘要:Form2 form = new Form2(); //实例化要添加的窗体 form.Show();//显示 form.TopLevel = false; //要将这个顶级窗口设置false panel1.Controls.Add(form);//添加到Pannel中 pannel在主窗体中
阅读全文
摘要:导入文件 :点击要添加的文件夹右击-new-other-输入要添加的文件后缀名(JavaScript) 点击相应选项 导入图像: 点击要添加的文件夹右击 import file system 选好路径 勾选需要导入的图像文件
阅读全文