端口开了,答的不对
运行下面这段程序,填写它打印出来的结果。
def state(有进程, 在监听, 应答正常):
if not 有进程:
return "没起来"
if not 在监听:
return "起来了但用不了"
if not 应答正常:
return "起来了但用不了"
return "能用"
print(state(True, True, False) + "/"
+ str(state(True, True, False) == state(True, False, False)))
全部评论