berkerpeksag / astor

Python AST read/write
https://pypi.org/project/astor/
BSD 3-Clause "New" or "Revised" License
793 stars 101 forks source link

why the type of variable ’NEW_PARAM_JIN is wrong #221

Open ChevyV opened 4 months ago

ChevyV commented 4 months ago

NEW_PARAM_TEXT=r'qqq处理数据库所有用到的数据表的字段集合qqq' from common.tools.confighandler import conf NEW_PARAM_JIN=r'zhushi空格from空格common点initialTools点dicttoxml空格import空格save下划线xml'

tree = ast.parse(content, filename=file_path)
ast.fix_missing_locations(tree)    

source_code = astor.to_source(tree)


NEW_PARAM_TEXT = 'qqq处理数据库所有用到的数据表的字段集合qqq'
from common.tools.confighandler import conf
NEW_PARAM_JIN = (
    'zhushi空格唯16一空格common点唯25一itialTools点dicttoxml空格唯17一空格save下划线xml')

   ?????????why i get the wrong type of variable ’NEW_PARAM_JIN ‘???????????????