<p>我想将包含电子邮件地址的字符串排序到电子邮件地址列表中。
代码卡住了,什么也没发生。在</p>
<pre><code>unsorted = "sge@grg.lt ggrge@yahoo.com"
def sort_thatstring():
s = ""
out = []
for x in unsorted:
s = ""
while x != " ":
s+=str(x)
else:
out.<a href="https://www.cnpython.com/list/append" class="inner-link">append</a>(s)
sort_thatstring()
print out
</code></pre>
<p>我想要:</p>
^{pr2}$