小编Lor*_*tta的帖子

Python初学者将String拆分为两个字符串

我有一个IP范围192.0.0.2-4作为字符串,并想将其分成两个新字符串

ip_start = '192.0.0.2'
ip_end = '192.0.0.4'
Run Code Online (Sandbox Code Playgroud)

所以我要寻找"-""192.0.0.2-4",分裂的,但我怎样才能使第二个字符串?

python string split string-split

0
推荐指数
1
解决办法
126
查看次数

标签 统计

python ×1

split ×1

string ×1

string-split ×1