Skip to content
本站總訪問量
本站訪客數 人次

TQC+ 程式語言Python 101 整數格式化輸出

題目說明:請撰寫一程式,輸入四個整數,然後將這四個整數以欄寬為5、欄與欄間隔一個空白字元,再以每列印兩個的方式,先列印向右靠齊,再列印向左靠齊,左右皆以直線 |(Vertical bar)作為邊界。

範例輸入

python
85
4
299
478

範例輸出

python
|   85     4|
|  299   478|
|85    4    |
|299   478  |

Contributors

The avatar of contributor named as lucashsu95 lucashsu95

Changelog