代码改变世界

随笔档案-2022年05月

在python中判断字符串是str还是unicode

2022-05-30 17:49 by 方斌, 372 阅读, 收藏, 编辑
摘要: if isinstance(iniStr , unicode ): print "unicode" elif isinstance(iniStr, str): print "str" else: print "no idea" 阅读全文
点击右上角即可分享
微信分享提示