类 1 using System; 2 namespace bin 3 { 4 public
class Doctor 5 { 6 public Doctor(){} 7 public Doctor(string name,byte age) 8 { 9
...
分类:
其他好文 时间:
2014-05-09 10:29:26
阅读次数:
218
今天,用ajax向springMVC的控制器传参数,是一个json对象。({"test":"test","test1":"test1""test2":"test2"})开始的想法是用一个对象来接收这个json对象。但是又不知道具体用什么对象,开始用了一个Object,名字和json对象属性名相同,但...
分类:
编程语言 时间:
2014-05-09 09:59:22
阅读次数:
305
在Access07之前的数据库后缀名均为*.mdb
而连接字符串写成Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\myFolder\*.mdb;Persist
Security Info=False;但是Access07和Access10将后缀名改为...
分类:
数据库 时间:
2014-05-09 09:58:53
阅读次数:
393
Roman to IntegerInteger to
Roman这两题纯粹是模拟题,关键就是理解罗马计数,直接上代码吧class Solution {public: int romanToInt(string s)
{ int result = 0; for (...
分类:
其他好文 时间:
2014-05-09 09:46:36
阅读次数:
298
由于Java虚拟机需要调用类的main()方法,所以该方法的访问权限必须是public。又因为Java虚拟机在执行main()方法时不必创建对象,所以该方法必须是static的。该方法接收一个String类型的数组参数,该数组中保存执行Java命令时传递给所运行的类的参数。1
public clas...
分类:
其他好文 时间:
2014-05-09 09:33:38
阅读次数:
278
Map map = new
TreeMap();//TreeMap本身具有排序功能(默认按键升序排序)map.put(12, "hello");map.put(7,
"bravestarr");map.put(20, "world");System.out.println(map.toString(...
分类:
其他好文 时间:
2014-05-09 09:28:49
阅读次数:
282
写一段程序,求1+2*2+3*3+n*n的值...
分类:
编程语言 时间:
2014-05-09 02:03:25
阅读次数:
238
简单的python发送html邮件代码,如下:#!/usr/bin/envpython
#-*-coding:utf-8-*-
importsmtplib
fromemail.headerimportHeader
fromemail.MIMETextimportMIMEText
fromemail.mime.multipartimportMIMEMultipart
############################################################..
分类:
编程语言 时间:
2014-05-09 00:57:45
阅读次数:
415
一、环境ubuntu10.4mysql5.1.60python.6.6java7二、搭建1.安装ubuntu10.4,并更新软件包2.sudosu-切换到root用户下安装mysql5.1.60groupaddmysql
useradd-gmysqlmysql
./configure--prefix=/usr/local/mysql--with-unix-socket-path=/usr/local/mysql/var/mysql.sock--sysconfd..
分类:
编程语言 时间:
2014-05-09 00:48:04
阅读次数:
362
python 解析html文档模块HTMLPaeser
ID
检测名称
CVE号
检测类别
风险级别
1
FTP缓冲区溢出
CVE-1999-0789...
分类:
编程语言 时间:
2014-05-09 00:38:52
阅读次数:
418