有这样的一段ip:"192.168.1.1-5,192.168.1.10-15"
想让他输出成:
192.168.1.1
192.168.1.2
192.168.1.3
192.168.1.4
192.168.1.5
192.168.1.10
192.168.1.11
192.168.1.12
192.168.1.13
192.168.1.14
192.168.1.15
有什么好办法么?易语言中我可以用文本处理的方式实现,python还不是很熟,求大神来个思路。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号