ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 17 - print_option
    Python 2020. 7. 24. 13:16

    print(값): 괄호안에 내용을 모니터에 출력 하라는 출력 명령문

    print option 변경하기 : end(끝문자)

    \n New Line (개행)

    sep(seperate : 값분리)

     

    print()
    print("--------------------")
    print("\n")
    print("\"--------------------\"")
    # 개행(\n): line feed(다음라인) + carriage return(맨앞으로 이동)
    print("--------------------\n\n\n\n")
    print("----------------")
    print("----------------\n")
    print("++++++++++++++++++++++")

    print("이름 : james", end=" -- ")
    print("나이 : 23")
    print("-----------------")

    print(1, 2, 3, 4)
    print(1, 2, 3, 4, sep=",")
    print(1, 2, 3, 4, sep="\n")

    # 2020-7-19
    print(2020, 7, 19, sep="-")
    print("{} {} {}".format(2020, 7, 19))

    'Python' 카테고리의 다른 글

    19 - list  (0) 2020.07.27
    18 - while  (0) 2020.07.24
    16 - for  (0) 2020.07.22
    15 - if_else  (0) 2020.07.22
    14 - input  (0) 2020.07.22

    댓글

Designed by Tistory.