Python3 判断输入字符串是否为IPV4地址 长话短说上代码 # -*- coding: utf-8 -*- def is_ipV4(ip_str): ip_list=ip_str.split('.') #print(ip_list