How do I make it so when I print a Python list it doesn't have the single quotes and brackets with each item when I print the list?

后端 未结 0 493
轻奢々
轻奢々 2020-12-12 08:31

Ok so I have been coding Python and when I run this code

names = ["Harry", " Ron", "Hermione"]
print(names)
# output: [\'Harry\'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题