|
@@ -11,7 +11,6 @@ port = 9999
|
|
status = 0 # 1连接 0失败
|
|
status = 0 # 1连接 0失败
|
|
# 从同目录下读取props.properties文件,获取配置(ip、port)信息
|
|
# 从同目录下读取props.properties文件,获取配置(ip、port)信息
|
|
with open("props.properties", "r") as f:
|
|
with open("props.properties", "r") as f:
|
|
- global ip, port
|
|
|
|
props = f.readlines()
|
|
props = f.readlines()
|
|
for prop in props:
|
|
for prop in props:
|
|
if prop.startswith("ip"):
|
|
if prop.startswith("ip"):
|