#coding=utf-8 __author__ = 'Administrator' print ("根据1号对应的周几输入数字:如 1号对应周日输入7;1号对应周一输入1;1号对应周二输入2;以此类推")
a=input() print ("请输入间隔长度") print ("%*s" % (40,"="*41))
week=["日","一","二","三","四","五","六"]
c=len(week) for j in week:
if j==week[c-1]:
print ("%*s" % (6,j))
else: print ("%*s" % (6,j)),
print ("%*s" % (40,"-"*41))
b=int(a)*6-1 if a!=0:
print("%*s" % (b,"")),
for i in range(1,31,1):
if i%7==(7-int(a)) or (i%7==0 and a==0):
print ("%*d" % (5,i))
elif i==30: print ("%*d" % (5,i))
else: print("%*d" % (5,i)),
print ("%*s" % (40,"="*41))