致力于Ubuntu中文推广http://forum.ubuntu.org.cn/
http://forum.ubuntu.org.cn/viewtopic.php?t=492860
代码: 全选
>>> text = "xx】xx" >>> "【" in text False >>> "】" in text True >>> "【" and "】" in text True
>>> "【" in text and "】" in text False