test string escape

This commit is contained in:
Bruno Rybársky 2022-01-18 14:45:31 +01:00
parent f010b60462
commit bad420e8ba

@ -9,6 +9,6 @@ pid = os.getpid()
#write pid to file /tmp/battleship_server.pid #write pid to file /tmp/battleship_server.pid
with open('/tmp/battleship_server.pid', 'w') as f: with open('/tmp/battleship_server.pid', 'w') as f:
f.write(str(pid)) f.write(str(pid))
print('Hello my(i am battleship server) pid is ' + str(pid)) print('Hello my(i \'m battleship server) pid is ' + str(pid))
while True: while True:
time.sleep(2) time.sleep(2)