Python Syntax Error: 'Could not parse the remainder: '=='低'' from 'obj.serverity=='低'''
This error occurs because of the quotation marks used around the string value '低'. In Python, you cannot use the same type of quotation marks inside a string that you used to define the string.
To fix this error, you can either use single quotes around the string value, like this:
obj.serverity == '低'
Or you can escape the quotes with a backslash, like this:
obj.serverity == "低"
原文地址: https://www.cveoy.top/t/topic/jJnE 著作权归作者所有。请勿转载和采集!