我是 Python 的新手,有一个简单的数组:
op = ['Hello', 'Good Morning', 'Good Evening', 'Good Night', 'Bye']
当我使用pprint时,我得到了以下输出:
['Hello', 'Good Morning', 'Good Evening', 'Good Night', 'Bye']
有没有办法去掉引号、逗号和括号,并将它们打印在单独的一行上。这样输出就是这样的:
Is there anyway i can remove the quotes, commas and brackets and print on a seperate line. So that the output is like this:
Hello
Good Morning
Good Evening
Good Night
Bye