S
Sullivan WxPyQtKinter
In python, these expression seems yields the same result:
inputstring='ABC'
print inputstring.lower()
print lower(inputstring)
print string.lower(inputstring)
result:
abc
abc
abc
Question:
Is the method lower() just a method for the inputstring instance( an
instrance object of a string class object), or a function in the module
string.py or a build-in function or sth else?
Why do the three expression yield the same result "abc"?
inputstring='ABC'
print inputstring.lower()
print lower(inputstring)
print string.lower(inputstring)
result:
abc
abc
abc
Question:
Is the method lower() just a method for the inputstring instance( an
instrance object of a string class object), or a function in the module
string.py or a build-in function or sth else?
Why do the three expression yield the same result "abc"?