当前位置:网站首页>判断字符串中是否包含中文
判断字符串中是否包含中文
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羽佳'))边栏推荐
- 不论你是大众,科班和非科班,我这边整理很久,总结出的学习路线,还不快卷起来
- [Distributed Advanced] Let's fill in those pits in Redis distributed locks.
- win10 uwp MVVM 语义耦合
- DOM Clobbering的原理及应用
- 如何进行自动化测试?【Eolink分享】
- WPF 使用封装的 SharpDx 控件
- unity中实现ue眼球的渲染
- Alibaba Cloud International Edition uses ROS to build WordPress tutorial
- After EasyCVR is locally connected to the national standard device to map the public network, the local device cannot play and cascade the solution
- win10 uwp xaml 绑定接口
猜你喜欢

Nintendo won't launch any new hardware until March 2023, report says

数据库SqlServer迁移PostgreSql实践

The upgrade of capacity helps the flow of computing power, the acceleration moment of China's digital economy

【STM32】入门(五):串口TTL、RS232、RS485

YOLOv7-Pose尝鲜,基于YOLOv7的关键点模型测评

Flask框架实现注册加密功能详解【Flask企业课学习】

c语言进阶篇:自定义类型--结构体

PHP代码审计10—命令执行漏洞

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

How does the intelligent video surveillance platform EasyCVR use the interface to export iframe addresses in batches?
随机推荐
【RTOS训练营】关于上课和答疑
基于 eBPF 的 Kubernetes 可观测实践
win10 uwp win2d 离屏渲染
win10 uwp ping
MMDetection 使用示例:从入门到出门
Babbitt | Metaverse daily must-read: Weibo animation will recruit all kinds of virtual idols around the world and provide support for them...
FE01_OneHot-Scala应用
Scala104 - Built-in datetime functions for Spark.sql
powershell和cmd对比
CPU突然飙高系统反应慢,是怎么导致的?有什么办法排查?
【简答题】月薪4k和月薪8k的区别就在这里
lc marathon 8.3
ECCV 2022 | FPN错位对齐,实现高效半监督目标检测(PseCo)
EuROC dataset format and related codes
阿里云技术专家秦隆:云上如何进行混沌工程?
Alibaba Cloud International Edition uses ROS to build WordPress tutorial
#yyds干货盘点# 面试必刷TOP101:链表相加(二)
Flink/Scala - Storing data with RedisSink
Win10只读文件夹怎么删除
浅谈web网站架构演变过程