#coding=utf-8
from __future__ import print_function
#利用泰勒公式计算星期几
#w=y+[y/4]+[c/4]-2c+[26(m+1)/10]+d-1
def getweek(year,month,day):
#w #星期
#c #世纪-1 YYYY的头两位
#y #年份 YYYY的后两位
#m #月份 >=3 1月 2月看成上年的13月 14月
#d=day #日
if month>=3:
......................
阅读全部 | 2019年2月27日 15:05
from __future__ import print_function
import socket
import sys
import os
filename=sys.argv[1]
txt=open(filename,"rb+")
filesize=os.path.getsize(filename)
i=1
while i<=filesize:
data=txt.read(1)
print ("%4s"%str(hex(ord(data)))+' ',end='')
......................
阅读全部 | 2019年2月26日 14:00