<p>我如何得到一个列表,每行打印一个单词?在</p>
<blockquote>
<p>Write a program that takes a list of student names and sorts them to
create a class roll. The list of names will be given on a one line
separated by a single space.</p>
<p>The program should work like this:</p>
</blockquote>
<pre><code>Students: Peng Ivan Alan Jodi Macy
Class Roll
Alan
Ivan
Jodi
Macy
Peng
</code></pre>
<p>相反,我的程序是这样工作的:</p>
^{pr2}$
<p>我的程序是:</p>
<p>我如何在每行打印?在</p>