Python中实现分行打印的两种方式

    技术2022-07-11  92

    1、使用转义字符\n

    print('jan\nfeb\nmar')

    jan feb mar

    print('this is a test%s'%'\nhappy\nbirthday')

    this is a test happy birthday 2、三重引号

    print("""i like watching tv. do you like it too? """)

    i like watching tv. do you like it too?

    Processed: 0.011, SQL: 9