python encode和decode的妙用
>>> "hello".encode("hex") '68656c6c6f'相应的还可以>>> '68656c6c6f'.decode("hex") 'hello'查了一下手册,还有这些codec可用CodecAliasesOperand typePurposeb
>>> "hello".encode("hex") '68656c6c6f'相应的还可以>>> '68656c6c6f'.decode("hex") 'hello'查了一下手册,还有这些codec可用CodecAliasesOperand typePurposeb