Skip to content

Commit 5755fc9

Browse files
committed
format
1 parent c54ef64 commit 5755fc9

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

py000/class_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ def prt(self):
1414
t.prt()
1515

1616
print "你好"
17-

py000/py_008.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#!/usr/bin/env python
2-
#-*- coding:utf-8 -*-
3-
###############################################################################
1+
#!/usr/bin/env python
2+
#-*- coding:utf-8 -*-
3+
###############################################################################
44
# File Name: py_008.py
55
# Author:
6-
# Mail:
6+
# Mail:
77
# Created Time: 2017-10-28 08:54:19
8-
###############################################################################
8+
###############################################################################
99

1010

1111
for i in range(1,10):

py000/pysocket_server.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
# Version: 1.0
99
# Created: 2018-05-28 10:47:13
10-
# Last Modified: 2018-05-29 10:26:57
10+
# Last Modified: 2018-05-30 16:30:22
1111
# Revision: none
1212
# Compiler: gcc
1313
#
@@ -26,7 +26,7 @@
2626

2727
while True:
2828
(conn, addr) = s.accept()
29-
print ('connected by', addr)
29+
print('connected by', addr)
3030
while True:
3131
data = conn.recv(1024)
3232
(cmd_status, cmd_result) = commands.getstatusoutput(data)
@@ -35,4 +35,3 @@
3535
else:
3636
conn.sendall(cmd_result)
3737
conn.close()
38-

py000/server.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#!/usr/bin/python
2-
#-*- coding:utf-8 -*-
3-
###############################################################################
1+
#!/usr/bin/python
2+
#-*- coding:utf-8 -*-
3+
###############################################################################
44
# File Name: server.py
55
# Author:
6-
# Mail:
6+
# Mail:
77
# Created Time: 2017-08-22 17:11:32
8-
###############################################################################
8+
###############################################################################
99

1010
import socket as sk
1111

@@ -23,5 +23,3 @@
2323
print 'connect:', a
2424
c.send('welcome')
2525
c.close()
26-
27-

0 commit comments

Comments
 (0)