# set a value for ArgName
>>> ArgName = "-h"
# see if that value is in this tuple
>>> ArgName in ("-h"," help")
True # because ArgName = '-h' which is in the tuple
>>> ArgName = " help"
>>> ArgName in ("-h"," help")
True # because ArgName = ' help' which is in the tuple
>>> ArgName = "something"
>>> ArgName in ("-h"," help")
False # because ArgName = 'something' which is NOT in the tuple
试着在你的控制台里测试这些东西。。。它们是不言自明的。你知道吗
相关问题 更多 >
编程相关推荐