#-*-Coding:utf-8-*-
# python:2.x
__author__ = ' Administrator '
Import datetime as S
Print
Def a ():
d={' Monday ': U ' week 1 ',
' Tuesday ': U ' week 2 ',
' Wednesday ': U ' week 3 ',
' Thursday ': U ' week 4 ',
' Friday ': U ' week 5 ',
' Saturday ': U ' week 6 ',
' Sunday ': U ' week 7 '}
For k,v in Zip (D.iterkeys (), D.itervalues ()):
S1=s.datetime.now ()
P=u ' week ' +s1.strftime ('%w%a ')
#print '%s '%d[k]
If p in D[k]:
print ' OK '
Else
Print P,k
S1=s.datetime.now ()
P=u ' week ' +s1.strftime (U '%w ')
Times=s.date.today ()
Print Times+s.timedelta (days=0), p
d={' Monday ': U ' week 1 ',
' Tuesday ': U ' week 2 ',
' Wednesday ': U ' week 3 ',
' Thursday ': U ' week 4 ',
' Friday ': U ' week 5 ',
' Saturday ': U ' week 6 ',
' Sunday ': U ' week 7 '}
def a (c):
D=[' A ', ' B ', ' C ', ' d ', ' e ']
For B in D:
If C in B:print ' AA '
Else
print ' BB '
def a (b):
d={' Monday ': U ' week 1 ',
' Tuesday ': U ' week 2 ',
' Wednesday ': U ' week 3 ',
' Thursday ': U ' week 4 ',
' Friday ': U ' week 5 ',
' Saturday ': U ' week 6 ',
' Sunday ': U ' week 7 '}
For K in D:
Print K
Current weekday of Python temp file