2021
05-02
05-02
Python 如何将字符串每两个用空格隔开
我就废话不多说了,大家还是直接看代码吧~example>>>importre>>>subject='080045000106309140003F2F7D100A0A3C0A0A0A3D0A00000800450000EE000000003F06CCF0C0A8C864C0A8646400000000000000000000000050000000F7410000'>>>result=re.sub(r"(?<=\w)(?=(?:\w\w)+$)","",subject)>>>result'080045000106309140003F2F7D100A0A3C0A0A0A3D0A00000800450000EE000000003F06C...
继续阅读 >