摘要: # pip3 install ping3 from ping3 import ping ping_ok = lambda ip: False if ping(dest_addr=ip) is None else True print(ping_ok('192.168.11.1')) 阅读全文
posted @ 2020-10-19 21:28 该显示昵称已被使用了 阅读(208) 评论(0) 推荐(0)
摘要: for i in range(20): challenge_pin = get_challenge_pin(url) if challenge_pin is not None: pin = challenge_pin + "test" + challenge_pin try: password = 阅读全文
posted @ 2020-10-19 21:00 该显示昵称已被使用了 阅读(164) 评论(0) 推荐(0)
摘要: xml.dom.minidom中的使用 pretty_print = lambda data: '\n'.join([line for line in xml.dom.minidom.parseString(data).toprettyxml(indent=' '*2).split('\n') if 阅读全文
posted @ 2020-10-19 17:20 该显示昵称已被使用了 阅读(251) 评论(0) 推荐(0)