Table of Content
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
''' @Author: Jedi.XL @Email: xiangyangan@gmail.com @Created Time: 7:20:53 PM, Sep 20, 2019 @Github: https://github.com/jediL @Website:www.tundrazone.com ------------ 苔原带 ------------ ''' str_a = 'hello\n' str_b = 'world\n' str_ret = str_a + str_b print(str_ret) # It's not cool, better choice: ls = ['hello', 'world'] str_ret = '\n'.join(ls) print(str_ret) # hello # world |