输入一个IP地址,判断是IP4还是IP6
class Solution{ <span style="white-space:pre;"> </span> private static Pattern pattern; private static Pattern ptipv4; static { // ipv6