In Python 3.x, the correct way to check if s is a string is isinstance(s, str). The bytes class isn't considered a string type in Python 3.
確定! 回上一頁