name = ‘sdhfa adhfiAKNFJ’
print(name.upper)
print(name.lower)
python结果返回
<built-in method lower of str object at 0x0000026B364F24E0>
是因为upper()和lower()是方法,后面一定要加上“()”
2021-03-04
最新推荐文章于 2021-04-24 13:45:09 发布
name = ‘sdhfa adhfiAKNFJ’
print(name.upper)
print(name.lower)
python结果返回
<built-in method lower of str object at 0x0000026B364F24E0>
是因为upper()和lower()是方法,后面一定要加上“()”