上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: importjava.util.Calendar;publicclassMain{publicstaticvoidmain(String[]args){Calendarcal=Calendar.getInstance();intday=cal.get(Calendar.DATE);intmonth=... 阅读全文
posted @ 2014-05-26 16:01 little white 阅读(4561) 评论(0) 推荐(0) 编辑
摘要: 有时候需要将j2se工程导出,这样可以在别处运作,就不必拘泥于开发感觉中才能运行了。具体做法如下:方法一:(工程没有引用外部jar包时,直接导出)选中工程---->右键,Export...--->Java--->JAR file--->next-->选择jar file的路径及名称-->next--... 阅读全文
posted @ 2014-05-26 16:00 little white 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 开机自动执行: rc.local 阅读全文
posted @ 2014-05-26 09:36 little white 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 在开发过程中,很容易出现以下的错误:可以看出:假如删除列表的元素之后直接执行continue,那么遍历的时候就会落下一个元素。那么怎么解决这个问题呢?首先 : 我们尝试把continue去掉:得出的结果是?如下:结果出乎意料,可以看出 3还在,4却没了!我们分析一下:当it == 3时:此时将3 从... 阅读全文
posted @ 2014-05-21 10:15 little white 阅读(1218) 评论(0) 推荐(0) 编辑
摘要: 在Python中,与时间处理有关的模块就包括:time,datetime以及calendar。这篇文章,主要讲解time模块。在开始之前,首先要说明这几点:在Python中,通常有这几种方式来表示时间:1)时间戳 2)格式化的时间字符串 3)元组(struct_time)共九个元素。由于Python... 阅读全文
posted @ 2014-04-27 16:40 little white 阅读(850) 评论(0) 推荐(0) 编辑
摘要: 初次接触ObjC时,会发现许多和其它语言不同的地方,会看到很多的+,- ,[ ,] ,@, NS等符号,这些符号在以后的编程中将经常看到,这部分内容在第二节中介绍。先熟悉一下ObjC的代码:#import "ClassA.h"#import int main( int argc, const cha... 阅读全文
posted @ 2014-04-18 15:36 little white 阅读(224) 评论(0) 推荐(0) 编辑
摘要: #python中的calendarimport calendar#返回指定年的某月def get_month(year, month): return calendar.month(year, month)#返回指定年的日历def get_calendar(year): return c... 阅读全文
posted @ 2014-04-18 13:25 little white 阅读(574) 评论(0) 推荐(0) 编辑
摘要: Ubuntu是最近很流行的一款Linux系统,因为Ubuntu默认是不启动root用户,现在介绍如何进入root的方法。(1)从user用户切换到root用户不管是用图形模式登录Ubuntu,还是命令行模式登录,我们会发现缺省的用户是user但是当我们需要执行一些具有root权限的操作(如修还系统文... 阅读全文
posted @ 2014-04-15 15:25 little white 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 首先,选择自己希望画的图:在官方网站就可以直接点击图,然后就会出现源代码:http://matplotlib.org/gallery.html 阅读全文
posted @ 2014-04-01 10:21 little white 阅读(1952) 评论(0) 推荐(0) 编辑
摘要: C文件概述 所谓“文件”是指一组相关数据的有序集合。这个数据集有一个名称,叫做文件名。 例如源程序文件、目标文件、可执行文件、库文件 (头文件)等都是文件。 文件通常是驻留在外部介质(如磁盘等)上的,在使用时才调入内存中来。 从不同的角度可对文件作不同的分类。从用户的角度看,文件可分为普... 阅读全文
posted @ 2014-03-12 20:21 little white 阅读(350) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页