【python】 字符串转小写(含汉字等时仍work)
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                【python】 字符串转小写(含汉字等时仍work)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                
                            
                            
                            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;
  
                        
                        
                        
?
轉載于:https://www.cnblogs.com/liyuxia713/p/3413103.html
總結
以上是生活随笔為你收集整理的【python】 字符串转小写(含汉字等时仍work)的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: WebSockets 简介
- 下一篇: Altium Designer 铺地
