当前位置:网站首页>判断字符串中是否包含中文
判断字符串中是否包含中文
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羽佳'))
边栏推荐
猜你喜欢
A group of friends asked for help, but the needs that were not solved in a week were solved in 3 minutes?
HCIP-R&S By Wakin自用笔记(1)企业网络高级解决方案
网站设计师:Nicepage 4.15 Crack By Xacker
浅谈web网站架构演变过程
Day018 Inheritance
12. SAP ABAP OData 服务如何支持 $select 有选择性地仅读取部分模型字段值
The upgrade of capacity helps the flow of computing power, the acceleration moment of China's digital economy
直播回顾|7 月 Pulsar 中文开发者与用户组会议
Flink/Scala - Storing data with RedisSink
巴比特 | 元宇宙每日必读:微博动漫将招募全球各类虚拟偶像并为其提供扶持...
随机推荐
用Excel绘制统计图
Matlab drawing 1
The Industrial Metaverse Brings Changes to Industry
A group of friends asked for help, but the needs that were not solved in a week were solved in 3 minutes?
win10 uwp MVVM 轻量框架
袋鼠云思枢:数驹DTengine,助力企业构建高效的流批一体数据湖计算平台
入选爱分析·银行数字化厂商全景报告,网易数帆助力金融数字化场景落地
运力升级助力算力流转,中国数字经济的加速时刻
Flink / Scala - 使用 RedisSink 存储数据
MySQL安装教程(详细)
DHCP&OSPF组合实验演示(Huawei路由交换设备配置)
从零开始实现一个简单的CycleGAN项目
Scala105-Spark.sql中collect_list用法
Global electronics demand slows: Samsung's Vietnam plant significantly reduces capacity
开篇-开启全新的.NET现代应用开发体验
EuROC dataset format and related codes
LVS+NAT 负载均衡群集,NAT模式部署
STP实验
VPC2187/8 电流模式 PWM 控制器 4-100VIN 超宽压启动、高度集成电源控制芯片推荐
Understanding of margin collapse and coincidence