Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f940bd1

Browse files
author
root
committed
update monitor_log
1 parent 1b2cd77 commit f940bd1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

monitor_log.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,16 @@ def GetLog(num):
3939
else:
4040
print 0
4141

42-
42+
'''
43+
jdata = set(blog).intersection(set(alog)) //交集
44+
mor = list(set(alog).difference(jdata)) //新增
45+
les = list(set(blog).difference(jdata)) //减少
46+
if len(mor) == 0 and len(les) == 0:
47+
print 0
48+
elif len(mor) == 0 and len(les) != 0:
49+
print '-: {0}'.format(','.join(les))
50+
elif len(mor) != 0 and len(les) == 0:
51+
print '+: {0}'.format(','.join(mor))
52+
else:
53+
print '+: {jia}\n-: {shao}'.format(jia=','.join(mor), shao=','.join(les))
54+
'''

0 commit comments

Comments
 (0)