我有一个IP范围192.0.0.2-4作为字符串,并想将其分成两个新字符串
192.0.0.2-4
ip_start = '192.0.0.2' ip_end = '192.0.0.4'
所以我要寻找"-"的"192.0.0.2-4",分裂的,但我怎样才能使第二个字符串?
"-"
"192.0.0.2-4"
python string split string-split
python ×1
split ×1
string ×1
string-split ×1