How to judge equality by reading Chinese characters in excel by python

use python to read the excel table and find out whether each sentence is marked with". (Chinese full stop) end. But it seems that because of the coding problem, pycharm recognized"?" A question mark, an unrecognizable meaning. How to solve this coding problem?

if (excelStr[-1] == ""):
    print("find this sentence")

because excelStr is read from excel,". It is entered in Pycharm and is not always equal.


just keep the type consistent.
it is recommended to print the code of excelStr [- 1], if unicode, puts'. Change it to u'.

Menu