前端基础之html HTML 初识 web服务本质 import socket def main(): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(('localhost',8081)) sock.listen ...
分类:
Web程序 时间:
2017-05-23 20:31:18
阅读次数:
162
运用“-”运算符将委托从委托链移除 1 class HelloWorld 2 { 3 //定义委托类型 4 delegate void DelegationChain(); 5 static void Main(string[] args) 6 { 7 //用静态方法来实例委托 8 Delegati ...
public class MyDate { private int year,month,day; private static int thisYear; static { thisYear=2012; } public MyDate(int year,int month,int day) { t ...
分类:
其他好文 时间:
2017-05-23 19:42:24
阅读次数:
172
webpack.config.js文件的配置:输入:module.exports={ entry: //入口文件,可以使string类型 例如:'./src/script/main.js' 还可以使用数组的形式 例如:['./src/script/main.js','./src/script/mai ...
分类:
Web程序 时间:
2017-05-23 19:39:58
阅读次数:
166
项目中要求做一个将配置文件读取到zookeeper节点上的工具: 开发代码如下: 但是当连接到远端的Zookeeper服务之后,出现了下面异常: Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLos ...
分类:
其他好文 时间:
2017-05-23 19:39:20
阅读次数:
200
编写功能类: View Code 编写main方法类: View Code 在pom文件中配置: View Code 打包方式: 1.进入到项目所在目录,例如: cd D:\workspace\riskCompensate\FileToZkUtil 2.运行命令 mvn assembly:assem ...
分类:
编程语言 时间:
2017-05-23 19:36:17
阅读次数:
255
import java.awt.*;public class hood{ public static void main (String arg[]){Frame f=new Frame("GridLayout");f.setLayout(new GridLayout(4,4));f.add(new ...
分类:
其他好文 时间:
2017-05-23 18:51:08
阅读次数:
162
P1025 数的划分 P1025 数的划分 P1025 数的划分 题目描述 将整数n分成k份,且每份不能为空,任意两个方案不相同(不考虑顺序)。 例如:n=7,k=3,下面三种分法被认为是相同的。 1,1,5; 1,5,1; 5,1,1; 问有多少种不同的分法。 输入输出格式 输入格式: n,k ( ...
分类:
其他好文 时间:
2017-05-23 18:49:40
阅读次数:
166
import java.awt.*;import java.awt.BorderLayout;import java.awt.Button;import java.awt.Frame;import java.awt.event.WindowEvent;import java.awt.event.Wi ...
分类:
其他好文 时间:
2017-05-23 18:48:35
阅读次数:
177
1 // 纹理映射的编写 2 Shader "TMoon/04-Texture" { 3 Properties{ 4 _Color("Color",Color) = (1,1,1,1) 5 _MainTex("Main Tex",2D) = "white"{} 6 } 7 8 SubShader{ ... ...
分类:
编程语言 时间:
2017-05-23 17:49:10
阅读次数:
876