1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-10 18:48:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/转置文件 [transpose-file].html
2022-03-29 12:43:11 +08:00

23 lines
378 B
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>给定一个文件 <code>file.txt</code>,转置它的内容。</p>
<p>你可以假设每行列数相同,并且每个字段由 <code>' '</code> 分隔。</p>
<p> </p>
<p><strong>示例:</strong></p>
<p>假设 <code>file.txt</code> 文件内容如下:</p>
<pre>
name age
alice 21
ryan 30
</pre>
<p>应当输出:</p>
<pre>
name alice ryan
age 21 30
</pre>