Skip to content

Commit

Permalink
V96
Browse files Browse the repository at this point in the history
升级了原始日志记录
  • Loading branch information
zhangqichuan committed Jun 7, 2015
1 parent ed83ef8 commit 601d0be
Show file tree
Hide file tree
Showing 4 changed files with 744 additions and 10 deletions.
Binary file added CheungSSH使用手册.docx
Binary file not shown.
24 changes: 14 additions & 10 deletions Format_Char_Show.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,36 @@ def Get_Char(Char,i):
return Max_Char_Len,New_Char

def Show_Line(Max_Char_Len,i=0,Flag='end'):
T=''
while i<=Max_Char_Len+2:
if i<=5 and Flag=='start':
sys.stdout.write('+')
#sys.stdout.write('+')
T+='+'
i+=1
continue

sys.stdout.write('-')
#sys.stdout.write('-')
T+='-'
i+=1
return T
def Show_Char(New_Char,Color_Status):
AllChar=''
if Color_Status==0:
Color_Start="\033[1;32m"
Color_End="\033[0m"
else:
Color_Start="\033[1;31m"
Color_End="\033[0m"
New_Char=New_Char
print '\n\n'
AllChar+='\n\n'
Len_and_Char=Get_Char(New_Char,i=0)
print Color_Start
Show_Line(Len_and_Char[0],i=0,Flag='start')
print
AllChar+=Color_Start
AllChar+=Show_Line(Len_and_Char[0],i=0,Flag='start') + '\n'
for t in Len_and_Char[1]:
print t
Show_Line(Len_and_Char[0],i=0)
print Color_End
print
AllChar=AllChar + t + '\n'
AllChar+=Show_Line(Len_and_Char[0],i=0) + Color_End +'\n'
#print AllChar
return AllChar

if __name__=='__main__':
Show_Char(sys.argv[1],0)
Expand Down
Loading

0 comments on commit 601d0be

Please sign in to comment.