检查字符串x是否是y的子字符串的Pythonic方法是:查找x是否等同于a、b、c、d、e、f或g也是Pythonic式的:但是检查某个字符串x是否包含a、b、c、d、e、f或g似乎很麻烦:
if a in x or b in x or c in x or d in x or e in x or f in x or g in
我使用的是这行代码:print("Connecting via API call, backing up the configuration for:", fwhost1)('Connecting via API call, backing up the configuration for:', '172.16.17.1')我尝试过调整代码行,但这是它运行时不会出现错误