擅长:python、mysql、java
<p><strong>懒惰风格:</strong></p>
<pre><code>url = "https://example.com/" + first_id
A = json.load(urllib.urlopen(url))
print A
</code></pre>
<p><strong>旧风格:</strong></p>
<pre><code>url = "https://example.com/%s" % first_id
A = json.load(urllib.urlopen(url))
print A
</code></pre>
<p><strong>新款2.6+:</strong></p>
<pre><code>url = "https://example.com/{0}".format( first_id )
A = json.load(urllib.urlopen(url))
print A
</code></pre>
<p><strong>新款2.7+:</strong></p>
<pre><code>url = "https://example.com/{}".format( first_id )
A = json.load(urllib.urlopen(url))
print A
</code></pre>