How do I convert a string to a list of chars?

前端 未结 0 1396
日久生厌
日久生厌 2021-02-12 07:12

Since a string supports iteration but not indexing, I would like to convert a string into a list of chars. I have \"abc\" and I want [\'a\', \'b\', \'c\']

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