s = 'taiBai'
s1 = s.upper()
print(s1)
全部转化为 大写
username = input('用户名')
password = input('密码')
code = 'QweA'
print(code)
your_code = input('请输入验证码:不区分大小写')
if your_code.upper() == code.upper():
if username == '太白' and password == '123':
print('登录成功')
else:
print('用户名密码错误')
else:
print('验证码错误')
msg = 'aa 很nb,aler是教育创始人之一,aa长得很帅'
msg1 = msg.replace('aa','00',2)
print(msg)
print(msg1)
标签:aa,upper,常用,code,操作方法,msg,str,print,input From: https://www.cnblogs.com/ETH8888/p/16586954.html