一、修改时区:# cp /usr/share/zoneinfo/Asia/Shanghai
/etc/localtime修改为中国的东八区# vi
/etc/sysconfig/clockZONE="Asia/Shanghai"UTC=falseARC=false二、配置新的时间日期设定:# dat...
分类:
系统相关 时间:
2014-05-05 11:49:55
阅读次数:
520
dict={"a":"apple","b":"banana","o":"orange"} print
"##########dict######################" for i in dict: print "dict[%s]=" %
i,dict[i] print...
分类:
编程语言 时间:
2014-05-04 20:13:19
阅读次数:
401
package mytest;
import java.util.*;;
public class mymain {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.print(new Date());
Properties p=System.get...
分类:
编程语言 时间:
2014-05-04 17:52:02
阅读次数:
363
同样的缩进表示这段代码处于同一个层次。每一个print都自带一个换行。定义变量一定要在使用函数等之前。abs(-14) ======= 取绝对值函数 内建函数
print abs(-14) ====== 14notepad++编译器没有gbk的 所以但是dos脚本系统是使用gbk的 所以建议直接使用...
分类:
编程语言 时间:
2014-05-04 11:38:35
阅读次数:
438
Actions 是由下列指令(statement)所组成: 1 表达式 (
函数调用,赋值...) 2 print 表达式列表 3 printf( 格式化字符串, 表达式列表) 4 if( 表达式 ) 语句 [else 语句] 5
while( 表达式 ) 语句 6 do 语句 while( 表.....
分类:
其他好文 时间:
2014-05-04 11:26:31
阅读次数:
486
/*1的个数时间限制:3000 ms | 内存限制:65535 KB 难度:1描述
小南刚学了二进制,他想知道一个数的二进制表示中有多少个1,你能帮他写一个程序来完成这个任务吗?输入第一行输入一个整数N,表示测试数据的组数(1int
main(){ int n; scanf("%d"...
分类:
其他好文 时间:
2014-05-04 10:32:30
阅读次数:
435
Eclipse SWT开发教程以及一个连连看游戏的代码实现下载,代码下载地址:http://www.zuidaima.com/share/1772672482675712.htm...
分类:
系统相关 时间:
2014-05-04 00:05:57
阅读次数:
675
本篇是boost::serialization 用基类指针转存派生类(错误多多,一波三折)的姊妹篇,这里只不过做一个总结。
先来看一个基类
class base_class
{
public:
base_class(int m=0) : base_member_(0) {}
virtual ~base_class() {}
virtual void print_data() = 0;
...
分类:
其他好文 时间:
2014-05-03 21:24:33
阅读次数:
247
#!/bin/bash
clear
declare FirstName Greeting
Greeting="Hello ,"
echo ""
echo "Enter Your First Name:"
read FirstName
echo "$ Greeting $FirstName"
首先 vim Print 回车
然后 i 进入插入状态
编辑以上代码,Esc 键...
分类:
其他好文 时间:
2014-05-03 21:05:20
阅读次数:
283
list1 = [ 4, 7, 7, 3, 3, 3, 2, 1 ]
list2 = [ 5, 4, 3, 3, 2, 2, 2, 1, 1, 1 ]
def havel_hakimi_algo( degree_list ):
degree_list.sort( reverse = True )
print degree_list
for degr...
分类:
编程语言 时间:
2014-05-03 17:13:49
阅读次数:
426