#---json---
import json

d = {'name':'lin',
    'tile':'Teather'}

t = json.dumps(d)
print(type(t))
print(t)

d = json.loads(t)
print(type(d))
print(d)

#---XML---
#---request---
import requests

r = requests.get('http://www.ip138.com/post')
text = r.text
print(text)
772c2c461f9225d25f88c032985d9dd6e508b0d2
<mask token>

<mask token>
print(type(t))
print(t)
<mask token>
print(type(d))
print(d)
<mask token>
print(text)

<mask token>
d = {'name': 'lin', 'tile': 'Teather'}
t = json.dumps(d)
print(type(t))
print(t)
d = json.loads(t)
print(type(d))
print(d)
<mask token>
r = requests.get('http://www.ip138.com/post')
text = r.text
print(text)

import json
d = {'name': 'lin', 'tile': 'Teather'}
t = json.dumps(d)
print(type(t))
print(t)
d = json.loads(t)
print(type(d))
print(d)
import requests
r = requests.get('http://www.ip138.com/post')
text = r.text
print(text)

#---json---
import json

d = {'name':'lin',
    'tile':'Teather'}

t = json.dumps(d)
print(type(t))
print(t)

d = json.loads(t)
print(type(d))
print(d)

#---XML---
#---request---
import requests

r = requests.get('http://www.ip138.com/post')
text = r.text
print(text)