首页 新闻 会员 周边
2
回答数

已解决问题 .isupper()和.islower()不带括号也能运行,为什么

python初学者,写作业时发现 s = "abc123ABC" t = "" for i in s: if i.islower(): t += i.upper() elif i.isupper():