擅长:python、mysql、java
<blockquote>
<p>I am stuck on how to read the marks from the file then creating a new
text file with the names, marks and class.</p>
</blockquote>
^{1}$
<blockquote>
<p>"line" will give you "Jack,Daniels,90"</p>
<p>line = line.strip() + "," + GroupNumber => will give you Jack,Daniels,90,10M1</p>
</blockquote>
<p>如果要提取每个字段,请使用else保留下面的部分。在</p>
^{pr2}$
<p>我希望这有帮助。在</p>