我有一组网址,例如:
https://www.facebook.com/profile.php?id=456789
https://www.facebook.com/messages/78134
https://www.facebook.com/profile.php?id=123
https://www.facebook.com/messages/781234
https://www.facebook.com/45/settings/781234/ab
https://www.facebook.com/48/settings/989213/ef
数据集至少有 100 个 url,比如 5-6 种类型。我期望的是:
[
['https://www.facebook.com/profile.php?id=456789',
'https://www.facebook.com/profile.php?id=123'],
['https://www.facebook.com/messages/781234',
'https://www.facebook.com/messages/78134'],
['https://www.facebook.com/45/settings/781234/ab',
'https://www.facebook.com/48/settings/989213/ef']
]
我如何对它们进行分类?没有学习输入。