forked from moegirlwiki/MoegirlWeixin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.py
40 lines (34 loc) · 827 Bytes
/
tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
'''
Created on 2013-7-1
@author: xuechong
'''
import hashlib
import datetime
from utils import Commons
def sortTests():
a = "aaaabbc"
b = "aaabbc"
c = "aaaaabb"
list_ = ["bca","abc","aab","aa","ccd"]
print sorted(list_)
def sha1test(str):
sha1 = hashlib.sha1()
if __name__ == "__main__":
#sortTests()
#sha1test("aaaaaaaa")
#help(hashlib.sha1())
#sha1 = hashlib.sha1()
#sha1.update("test")
#print str(sha1.hexdigest())
tu = (1,2,3)
list_ = list(tu)
print list_.pop()
print list_.pop()
print tu
x = datetime.datetime.utcnow() + datetime.timedelta(hours=+8)
# print type(x)
# print help(datetime.datetime)
# print str(x.year) + str(x.month) + str(x.day)
# print x.strftime("%Y%m%d")
print Commons.todayStr()
pass