Python: unespected backslash escape character in a string composed by text and list

前端 未结 0 1640
鱼传尺愫
鱼传尺愫 2020-12-13 18:44

I\'m writing a python validator. Something like this:

error = "first_error : [\'1MA\', \'1RA\']"

def test ():
    errors = []
    errors.append (er         


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