Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 132 Bytes

nicepython片段.md

File metadata and controls

5 lines (5 loc) · 132 Bytes
a = "http://127.0.0.1:80/" #a = "127.0.0.1:80/" ok too
a.split('//')[-1].split('/')[0].rsplit(':',1)   
['127.0.0.1', '80']