一个端口几个进程
运行下面这段程序,填写它打印出来的结果。
BIND = {9101: "甲", 9102: "乙"}
def try_bind(port, who):
return "占上了" if port not in BIND else "被占了"
print(try_bind(9103, "丙") + "/" + try_bind(9101, "丁") + "/"
+ str(len(BIND)))
运行下面这段程序,填写它打印出来的结果。
BIND = {9101: "甲", 9102: "乙"}
def try_bind(port, who):
return "占上了" if port not in BIND else "被占了"
print(try_bind(9103, "丙") + "/" + try_bind(9101, "丁") + "/"
+ str(len(BIND)))
全部评论