当前位置:网站首页>判断字符串中是否包含中文
判断字符串中是否包含中文
2022-08-04 18:51:00 【狗庄欺人太甚】
def is_contain_chinese(check_str):
"""
判断字符串中是否包含中文
:param check_str: {str} 需要检测的字符串
:return: {bool} 包含返回True, 不包含返回False
"""
for ch in check_str:
if u'\u4e00' <= ch <= u'\u9fff':
return True
return False
print(is_contain_chinese('aaaaaaaniu羽佳'))边栏推荐
- LVS+Keepalived群集
- 用Excel绘制统计图
- FE01_OneHot-Scala Application
- 2019 Haidian District Youth Programming Challenge Activity Elementary Group Rematch Test Questions Detailed Answers
- 动手学深度学习_VggNet
- BigDecimal 使用注意!!“别踩坑”
- 如何进行自动化测试?
- Go language Go language, understand Go language file operation in one article
- Day018 继承
- win10 uwp json
猜你喜欢

如何进行自动化测试?

从零开始实现一个简单的CycleGAN项目

使用.NET简单实现一个Redis的高性能克隆版(二)

直播回顾|7 月 Pulsar 中文开发者与用户组会议

自己经常使用的三种调试:Pycharm、Vscode、pdb调试

CAN光纤转换器CAN光端机解决消防火灾报警

#yyds干货盘点# 面试必刷TOP101:链表相加(二)

入选爱分析·银行数字化厂商全景报告,网易数帆助力金融数字化场景落地

How does the intelligent video surveillance platform EasyCVR use the interface to export iframe addresses in batches?

PHP代码审计10—命令执行漏洞
随机推荐
2019 Haidian District Youth Programming Challenge Activity Elementary Group Rematch Test Questions Detailed Answers
Activity数据库字段说明
部署LVS-DR群集
win10 uwp 修改Pivot Header 颜色
数据库SqlServer迁移PostgreSql实践
curl命令的那些事
Flask framework implementations registered encryption, a Flask enterprise class learning 】 【
Route lazy loading
#yyds干货盘点# 面试必刷TOP101:链表相加(二)
ACP-Cloud Computing By Wakin自用笔记(1)云计算基础、虚拟化技术
DHCP&OSPF combined experimental demonstration (Huawei routing and switching equipment configuration)
vantui 组件 van-field 路由切换时,字体样式混乱问题
入选爱分析·银行数字化厂商全景报告,网易数帆助力金融数字化场景落地
win10 uwp ping
Thrift installation configuration
机器学习——线性回归
敏捷开发项目管理的一些心得
BigDecimal 使用注意!!“别踩坑”
Those things about the curl command
Scala104 - Built-in datetime functions for Spark.sql