假设
ASCII字符串:
string1 = 'Hello'string2 = 'hello'if string1.lower() == string2.lower(): print("The strings are the same (case insensitive)")else: print("The strings are NOT the same (case insensitive)")
假设
ASCII字符串:
string1 = 'Hello'string2 = 'hello'if string1.lower() == string2.lower(): print("The strings are the same (case insensitive)")else: print("The strings are NOT the same (case insensitive)")