当前位置:网站首页>判断字符串中是否包含中文
判断字符串中是否包含中文
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羽佳'))边栏推荐
- curl命令的那些事
- Those things about the curl command
- The upgrade of capacity helps the flow of computing power, the acceleration moment of China's digital economy
- Nintendo won't launch any new hardware until March 2023, report says
- Flink/Scala - Storing data with RedisSink
- 关于使用腾讯云HiFlow场景连接器每天提醒签到打卡
- 如何搭建 RADIUS 云服务器?
- WPF 使用封装的 SharpDx 控件
- A group of friends asked for help, but the needs that were not solved in a week were solved in 3 minutes?
- 如何进行自动化测试?
猜你喜欢

老电脑怎么重装系统win10

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

企业即时通讯软件有哪些功能?对企业有什么帮助?

Homework 8.3 Thread Synchronization Mutex Condition Variables

LVS+NAT 负载均衡群集,NAT模式部署

袋鼠云思枢:数驹DTengine,助力企业构建高效的流批一体数据湖计算平台

12. SAP ABAP OData 服务如何支持 $select 有选择性地仅读取部分模型字段值

2019年海淀区青少年程序设计挑战活动小学组复赛试题详细答案

(ECCV-2022)GaitEdge:超越普通的端到端步态识别,提高实用性

limux入门3—磁盘与分区管理
随机推荐
limux入门3—磁盘与分区管理
如何进行自动化测试?【Eolink分享】
如何进行自动化测试?
CAN光纤转换器CAN光端机解决消防火灾报警
c语言进阶篇:自定义类型--结构体
2019 Haidian District Youth Programming Challenge Activity Elementary Group Rematch Test Questions Detailed Answers
链表的经典入门LeetCode题目
Flink / Scala - 使用 RedisSink 存储数据
DOM Clobbering的原理及应用
【RTOS训练营】关于上课和答疑
Nintendo won't launch any new hardware until March 2023, report says
EuROC 数据集格式及相关代码
防火墙基础之防火墙做出口设备安全防护
阿里云国际版使用ROS搭建WordPress教程
Day018 Inheritance
敏捷开发项目管理的一些心得
#yyds干货盘点# 面试必刷TOP101:链表相加(二)
The upgrade of capacity helps the flow of computing power, the acceleration moment of China's digital economy
A group of friends asked for help, but the needs that were not solved in a week were solved in 3 minutes?
”元宇宙“必须具备这些特点