Ideone.com requires JavaScript to work.
fork(1) download loading...
  1. import json
  2. L = [b'\xff\xff\xff\xff'.decode("latin1")]
  3. print(L)
  4. s = json.dumps(L)
  5. print(s)
  6. LL = json.loads(s)
  7. print(LL)
  8. assert all(b == b"\xff" for b in LL[0].encode("latin1"))
aW1wb3J0IGpzb24KTCA9IFtiJ1x4ZmZceGZmXHhmZlx4ZmYnLmRlY29kZSgibGF0aW4xIildCnByaW50KEwpCnMgPSBqc29uLmR1bXBzKEwpCnByaW50KHMpCkxMID0ganNvbi5sb2FkcyhzKQpwcmludChMTCkKYXNzZXJ0IGFsbChiID09IGIiXHhmZiIgZm9yIGIgaW4gTExbMF0uZW5jb2RlKCJsYXRpbjEiKSk=
Success #stdin #stdout 0.1s 8888KB
stdin
Standard input is empty
stdout
[u'\xff\xff\xff\xff']
["\u00ff\u00ff\u00ff\u00ff"]
[u'\xff\xff\xff\xff']
https://ideone.com/VrOtxm
language:
Python (cpython 2.7.16)
created:
12 years ago
visibility:
secret

Share or Embed source code

Discover > Sphere Engine API

The brand new service which powers Ideone!

Discover > IDE Widget

Widget for compiling and running the source code in a web browser!

AltStyle によって変換されたページ (->オリジナル) /