P2815 Python题解 Ag2WO4 · 2021-08-14 12:12:19 · 题解 前排提示:这是一篇 Python 题解喵! 思路 Python 有个 ipaddress 库,里面有个函数 IPv6Address,输出的就是简化后的 IPv6 地址。 那完美了!两行(用分号可以并成一行)就能解决本题! 代码 from ipaddress import*;print(IPv6Address(input())) 只有 50B,绝对是本题最短代码!