python字典转bytes类型字典



import base64 import json
1. a={"Vod":{"userData":"{}".format("e42e6dedf7a5a3fd19689aeb74bb1605")}} r=bytes('{}'.format(a),'utf-8') print(r) #b"{'Vod': {'userData': 'e42e6dedf7a5a3fd19689aeb74bb1605'}}

 

相关文章:

  • 2021-09-10
  • 2022-12-23
  • 2021-09-07
  • 2021-12-22
  • 2022-02-08
猜你喜欢
  • 2021-11-27
  • 2021-10-30
  • 2021-08-28
  • 2021-11-01
  • 2021-05-31
  • 2021-12-11
  • 2022-12-23
相关资源
相似解决方案