当前位置:网站首页>判断字符串中是否包含中文
判断字符串中是否包含中文
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羽佳'))
边栏推荐
猜你喜欢
”元宇宙“必须具备这些特点
基于3D机器视觉的采血试管分拣系统
译文推荐|Apache Pulsar 隔离系列(四):单集群隔离策略
2019 Haidian District Youth Programming Challenge Activity Elementary Group Rematch Test Questions Detailed Answers
Flink/Scala - Storing data with RedisSink
How does the intelligent video surveillance platform EasyCVR use the interface to export iframe addresses in batches?
DOM Clobbering的原理及应用
天呐,七夕我收到9份告白~
limux入门3—磁盘与分区管理
CAN光纤转换器CAN光端机解决消防火灾报警
随机推荐
VPC2187/8 电流模式 PWM 控制器 4-100VIN 超宽压启动、高度集成电源控制芯片推荐
Short-term reliability and economic evaluation of resilient microgrids under incentive-based demand response programs (Matlab code implementation)
用Excel绘制统计图
CAN光纤转换器CAN光端机解决消防火灾报警
【CCIG 2022】视觉大模型论坛
在表格数据集上训练变分自编码器 (VAE)示例
机器学习——线性回归
win10 uwp win2d 离屏渲染
当项目中自动格式化插件Prettier和ESLint冲突报错时如何解决
阿里云技术专家秦隆:云上如何进行混沌工程?
EuROC 数据集格式及相关代码
ros2订阅esp32发布的电池电压数据-补充
Google AppSheet: 无需编程构建零代码应用
LVS+NAT 负载均衡群集,NAT模式部署
ros2订阅esp32发布的电池电压数据
企业即时通讯软件有哪些功能?对企业有什么帮助?
猜数字游戏
在线生成接口文档
Activity数据库字段说明
Babbitt | Metaverse daily must-read: Weibo animation will recruit all kinds of virtual idols around the world and provide support for them...