Created
December 16, 2016 06:01
-
-
Save summer20100514/ce62a089a321af9acb57a4702ec9e180 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding=utf-8 | |
string = "{\"results\":[{\"location\":{\"id\":\"WX4FBXXFKE4F\",\"name\":\"北京\",\"country\":\"CN\",\"path\":\"北京,北京,中国\",\"timezone\":\"Asia/Shanghai\",\"timezone_offset\":\"+08:00\"},\"now\":{\"text\":\"晴\",\"code\":\"0\",\"temperature\":\"0\"},\"last_update\":\"2016-12-16T10:00:00+08:00\"}]}" | |
string2 = "{\"results\":[{\"location\":{\"id\":\"WX4FBXXFKE4F\",\"name\":\"Beijing\",\"country\":\"CN\",\"path\":\"Beijing,Beijing,China\",\"timezone\":\"Asia/Shanghai\",\"timezone_offset\":\"+08:00\"},\"now\":{\"text\":\"Sunny\",\"code\":\"0\",\"temperature\":\"1\"},\"last_update\":\"2016-12-16T10:10:00+08:00\"}]}" | |
print string | |
print len(string) | |
print ' ' | |
print string2 | |
print len(string2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment