正文【python】 字符串转小写(含汉字等时仍work)IP云V管理员/2022-09-25/3 阅读 09/25提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示def mylower(str): outstr = ""; strlen = len(str); idx = 0; while idx < strlen: if ord(str[idx])>0 and ord(str[idx])<= 128: outstr += str[idx].lower(); idx += 1; else: outstr += str[idx:idx+2]; idx += 2; return outstr;