#coding:utf-8rfile = open('test.txt','r')str=[]for x in rfile: str = x.split(',')for x in str: print (chr(int(x)),end='')rfile.close()
分类:
编程语言 时间:
2014-12-05 12:28:12
阅读次数:
131
默认格式为:2005-6-6 14:33:34如果要换成成200506,06-2005,2005-6-6或更多的该怎么办呢我们要用到:DateTime.ToString的方法(String, IFormatProvider)using System;using System.Globalizatio...
分类:
Web程序 时间:
2014-12-05 10:25:44
阅读次数:
205
#/usr/bin/envpython
#-*-coding:utf-8-*-
importtime,datetime,socket,urllib,urllib2,cookielib
#由于我是今天去取上周一的时间所以这里写成10,时间应该是2014年11月24上周星期一,
threeDayAgo=(datetime.datetime.now()-datetime.timedelta(days=10))
#时间格式化输出,由..
分类:
编程语言 时间:
2014-12-04 18:14:25
阅读次数:
257
public static bool ProcessIdCard(this string idCard, out DateTime birthday, out string genderName) { bool result; birthda...
分类:
其他好文 时间:
2014-12-04 15:31:46
阅读次数:
112
项目地址:https://github.com/aosabook/500lines/tree/master/web-server.作者是来自Mozilla的Greg Wilson.项目是用py2写成.下面文章中贴出的是已经转换后的能在python3.4下运行的代码,所以可能会与原先的有少许不同.简单...
分类:
Web程序 时间:
2014-12-04 10:13:56
阅读次数:
217
import datetimedef date_range(start_date,end_date): for n in range(int((end_date-start_date).days)): yield start_date+datetime.timedelta(n) ...
分类:
编程语言 时间:
2014-12-04 00:41:24
阅读次数:
4928
主要原因是出在Hibernate的配置文件中。症状1. java文件类型java.util.Date,数据库类型datetime,Hibernate配置文件用date,存储进数据库的时间只有年月日,没有时分秒2. java文件类型java.util.Date,数据库类型datetime,Hibern...
分类:
数据库 时间:
2014-12-03 23:12:59
阅读次数:
337
项目地址:https://github.com/aosabook/500lines/tree/master/web-server.作者是来自Mozilla的Greg Wilson.项目是用py2写成.下面文章中贴出的是已经转换后的能在python3.4下运行的代码,所以可能会与原先的有少许不同.简单...
分类:
Web程序 时间:
2014-12-03 23:08:34
阅读次数:
310
上月第一天:DateTime.Parse(DateTime.Now.AddMonths(-1).ToString("yyyy-MM-01"))上周星期天:DateTime.Parse(DateTime.Now.AddDays(-7-(int)DateTime.Now.DayOfWeek).ToStr...
银联文件下载地址:http://202.101.25.178:8080/sim/docs/public ActionResult unionTest() { Dictionary resp = new Dictionary(); DateTime orderTime = DateTime.Now; ...
分类:
移动开发 时间:
2014-12-03 20:51:07
阅读次数:
144