001、
>>> str1 = ">aabbcc" >>> if str1.startswith(">"): ... print("yes") ... yes >>> if not str1.startswith(">"): ## python中if语句取反 ... print("yes") ...
标签:语句,...,python,str1,取反,yes From: https://www.cnblogs.com/liujiaxin2018/p/16851448.html
001、
>>> str1 = ">aabbcc" >>> if str1.startswith(">"): ... print("yes") ... yes >>> if not str1.startswith(">"): ## python中if语句取反 ... print("yes") ...
标签:语句,...,python,str1,取反,yes From: https://www.cnblogs.com/liujiaxin2018/p/16851448.html