2018-11-22

python formatting



for i in range(5):
    i=i+1
    print("{0:0>10}".format(i))
print("="*30)
print("{0:=>10}".format(i))
print("{0:=<10 format="" i="" p="">print("{0:=^10}".format(i))
print("{0:=>10}".format(i))

0000000001
0000000002
0000000003
0000000004
0000000005
==============================
=========5
5=========
====5=====
=========5
<10 format="" i="" p="">
참조하기 좋은 곳

댓글 없음:

댓글 쓰기