1.多条件判断 if s in [1, 2, 3]:
2.字符串截取 某个字符串为stmp="abcdef54321" 取前面5个stmp[:5] 取后面5个stmp[-5:] 从前面开始取,不包括最后两个stmp[:-2] 从第1个取到第2个stmp[0:2] 就这几种用法了。