import random import sys # 获取参数信息 if len(sys.argv) == 2: r_num = int(sys.argv[1]) b_num = int(sys.argv[2]) else: r_num = 5 b_num = 2 # 确定参数范围是否合理 if 5 <= r_num < 17 and …
用途:查询中国地区ipv4地址,使用方法: python3 query_china_ip.py #!/usr/bin/python3 # -*-coding=utf-8-*- """ 用途:查询中国地区ipv4地址 使用方法: python3 query_china_ip.py """ import re import requests impor…