Find all strings in python code files

后端 未结 6 1131
清歌不尽
清歌不尽 2021-01-11 23:26

I would like to list all strings within my large python project.

Imagine the different possibilities to create a string in python:

mystring = \"hello         


        
6条回答
  •  隐瞒了意图╮
    2021-01-11 23:46

    You may also consider to parse your code with pygments.

    I don't know the other solution, but it sure is very simple to use.

提交回复
热议问题