package com.hengheng.scalaabstract class Animal { def walk(speed : Int) def breathe() = { println("Aninamal breathes.") }}trait Flyable { def...
分类:
其他好文 时间:
2015-04-26 13:48:05
阅读次数:
118
HDU 1142 A Walk Through the Forest (Dijkstra + 记忆化搜索 好题)...
分类:
其他好文 时间:
2015-04-25 22:47:28
阅读次数:
176
import osimport os.pathrootdir = “d:\data” # 指明被遍历的文件夹for parent,dirnames,filenames in os.walk(rootdir): #三个参数:分别...
分类:
编程语言 时间:
2015-04-22 17:54:05
阅读次数:
148
1: os.listdir(path) //path为目录 功能相当于在path目录下执行dir命令,返回为list类型 print os.listdir('..') 2: os.path.walk(path,visit,arg) path :是将要遍历的目录 visit :是一个函数指针,函数圆形...
分类:
编程语言 时间:
2015-04-22 17:36:09
阅读次数:
156
#coding=utf-8
import sys,datetime,time,os,os.path,stat,re
repattern = re.compile(r‘.*[\.]{1}([^\.]+)‘)
def changeFileTime(path, ctime):
for parent,dirnames,filenames in os.walk(path):
...
分类:
编程语言 时间:
2015-04-22 11:50:50
阅读次数:
162
On the beaming day of 60th anniversary of NJUST, as a military college which was Second Artillery Academy of Harbin Military Engineering Institute before, queue phalanx is a special landscape.
...
分类:
其他好文 时间:
2015-04-22 00:39:12
阅读次数:
155
Dima, Inna and Seryozha have gathered in a room. That’s right, someone’s got to go. To cheer Seryozha up and inspire him to have a walk, Inna decided to cook something.Dima and Seryozha have n fruits i...
分类:
其他好文 时间:
2015-04-21 22:52:16
阅读次数:
137
1.自己调用命令行 pyuic4-ocodeFile.py-xyourUIfile.ui2.写一个批处理,每次双击就行了,跟你的源文件放在同一文件夹下 importosforroot,dirs,filesinos.walk('.'):forfileinfiles:iffile.endswith(.....
分类:
其他好文 时间:
2015-04-18 15:56:18
阅读次数:
150
类的设计1.类的设计:
1> 类名
* 类名的第一个字母必须是大写
* 不能有下划线
* 多个英文单词,用驼峰标识
2> 属性
3> 行为(功能)2.植物大战僵尸的僵尸
* 类名:Zoombie
* 属性:life、speed、gongjili
* 行为:walk、bite、die3.雷电的飞机
* 类名:Plane
* 属性:life、gongjili、speed、bombCount
* 行为:f...
分类:
其他好文 时间:
2015-04-18 11:37:21
阅读次数:
142
Problem DescriptionOn the beaming day of 60th anniversary of NJUST, as a military college which was Second Artillery Academy of Harbin Military Engineering Institute before, queue phalanx is a special...
分类:
其他好文 时间:
2015-04-16 17:47:17
阅读次数:
181