AnswerRows=getSubJectAnswer (opener, userId)
File "moso. Py, 48, the line in getSubJectAnswer
TrueRate=item. The find (attrs={" style ":" color: # 7 ac6c;" }). The string
AttributeError: 'NoneType' object has no attribute 'string'
This is what circumstance, python3.6
CodePudding user response:
Find back to NoneReturn_data=https://bbs.csdn.net/topics/item.find (attrs={" style ":" color: # 7 ac6c;" })
If return_data is None:
# returns None handling code
The else:
TrueRate=return_data. String