擅长:python、mysql、java
<blockquote>
<p>Iterate over the dict and extend to a list as follows:</p>
</blockquote>
<pre><code>mydict = {'s': 'http://webprotege.stanford.edu/INFOMDM', 'p': 'type', 'o': 'term1_course'}
mylist = []
for x in mydict.items():
mylist.extend(x)
</code></pre>
<blockquote>
<p>Output
['o', 'term1_course', 's', '<a href="http://webprotege.stanford.edu/INFOMDM" rel="nofollow noreferrer">http://webprotege.stanford.edu/INFOMDM</a>', 'p', 'type'] </p>
</blockquote>