`
zuroc
  • 浏览: 1307425 次
  • 性别: Icon_minigender_1
  • 来自: 江苏
社区版块
存档分类
最新评论

is_cn_char

 
阅读更多
unicode码

def is_cn_char(i):
    return 0x4e00<=ord(i)<0x9fa6

def is_cn_or_en(i):
    o = ord(i)
    return o<128 or 0x4e00<=o<0x9fa6

分享到:
评论

相关推荐

    [原创]Moo ASP缓存类 CHM

    Dim APP_FRIST_CHAR:APP_FRIST_CHAR="_MOO_CN_APP_" '---------------------------- class appCache '---------------------------- private keySch_ '索引缓存键值名 private keyRoot_ '缓存项键值全路径 ...

    LT8900参考代码

    unsigned char LT_SCAN_RSSI_CN_NO = (31 ); unsigned char LT_RX_ACK_TIME = 100; //wait RX ACK pack for 100us unsigned char LT_SCAN_RSSI_CH = 0; // scan channle = 2042+x unsigned char LT_SCAN_RSSI_TIME =...

    !!!!ap6212a0_a33_sc3817r_验证通过_修正wifi的配置文件为nvram_ap6212.txt

    persist.sys.country=CN PRODUCT_PACKAGES += Bluetooth #PRODUCT_PROPERTY_OVERRIDES += \ # ro.product.8723b_bt.used=true #GPS Feature #PRODUCT_PACKAGES += gps.polaris #BOARD_USES_GPS_TYPE := ...

    !!!!rtl8189es_r16m验证通过20170818_1659没有外层目录.zip

    ## make sure BOARD_HAVE_BLUETOOTH is true for every bt vendor #BOARD_HAVE_BLUETOOTH := true #BOARD_HAVE_BLUETOOTH_BCM := true #BOARD_HAVE_BLUETOOTH_NAME := ap6212 #BOARD_BLUETOOTH_BDROID_BUILDCFG_...

    pcf8563_i2c1_r8_ruoge_ov2640通过给RTC驱动增加设备节点读取秒钟成功+直接读取I2C1获取秒钟值20160626_2201.7z

    /* This is the structure as used in the I2C_RDWR ioctl call */ struct i2c_rdwr_ioctl_data { struct i2c_msg __user *msgs; /* pointers to i2c_msgs */ __u32 nmsgs; /* number of i2c_msgs */ }; ...

    开发PHP扩展详细教程

    AC_MSG_ERROR(Please make sure the libicbcapi.a is in current directory) [Page] fi PHP_NEW_EXTENSION(icbc, icbc.c, $ext_shared) fi 第三行判断是否要启用icbc扩展, 第五行判断ICBC的静态库是否在...

    rtl8189es_r16m验证通过20170818_1659没有外层目录.7z

    ## make sure BOARD_HAVE_BLUETOOTH is true for every bt vendor #BOARD_HAVE_BLUETOOTH := true #BOARD_HAVE_BLUETOOTH_BCM := true #BOARD_HAVE_BLUETOOTH_NAME := ap6212 #BOARD_BLUETOOTH_BDROID_BUILDCFG_...

    获取USB摄像头的1080p的JPEG格式的图片20180608_1806.7z

    // // http://blog.sina.com.cn/s/blog_602f87700100znq7.html // // 嵌入式Linux下Camera编程--V4L2 // // Z:\kernel_imx\include\linux\videodev2.h // /* Values for 'capabilities' field */ #define V4L2_CAP_...

    Python技术速查手册.docx

    if char in char_count: char_count[char] += 1 else: char_count[char] = 1 return char_count s = input("请输入一段字符串: ") print(count_chars(s)) ``` **5. 使用递归实现快速排序** ```python def ...

    tcp并发服务器代码

    * Author: Gang Liang (cs.scu.edu.cn/~lianggang), lianggang@scu.edu.cn * Company: Sichuan university * ===================================================================================== */ #...

    EasyX_20151015(beta)

    HWND initgraph(int* gdriver, int* gmode, char* path); void bar(int left, int top, int right, int bottom); // 画无边框填充矩形 void bar3d(int left, int top, int right, int bottom, int depth, bool ...

    oracle农历解决方案

    DATA CHAR(7) NOT NULL, -- 农历年的16进制数 DataInt INTEGER NOT NULL -- 农历年的10进制数 ); ``` 然后,将文件中给出的年份和对应的16进制及10进制数值插入到表中。 2. 编写转换函数 接下来,我们需要编写一...

    grub4dos-V0.4.6a-2017-02-04更新

    更新说明: 2017-02-04(yaya) Ls command: Empty Folder returns false. 2016-12-08(yaya) 修正lz4、vhd不显示解压缩进度指示。增加lzma解压缩进度指示。 2016-11-09(不点) 0x8205 bit 5 = 1: 使checkkey...

    小程序省市区数据 sql 文件

    area_id area_pid area_name merger_name short_name merger_short_name area_level city_code zip_code area_pinyin area_jianpin first_char loc area_remark create_time update_time is_del ------- -------- -...

    Oracle sqldeveloper without jdk (win+linux)

    完整版下载:http://www.oracle.com/technology/global/cn/software/products/sql/index.html 1. Known Issues 1.1 General - Print prints only one page that is a truncation of the current tab. - Can't ...

    基于SIP开发软件电话的一些资源(转自YOUTOO)

    char localip[128]; eXosip_guess_localip (AF_INET, localip, 128); snprintf (tmp, 4096, "v=0\r\n" "o=josua 0 0 IN IP4 %s\r\n" "s=conversation\r\n" "c=IN IP4 %s\r\n" "t=0 0\r\n" "m=audio %s RTP/...

    一个java正则表达式工具类源代码.zip(内含Regexp.java文件)

    原文如下: 以前写了一个java的正规表达式的java工具类,分享一下,有用到的欢迎下载使用。 如果你有常用的定义好的,且测试通过的正规表达式,欢迎跟贴,也让我享用一下 . 类中用到了 jakarta-oro-2.0.jar 包,请...

    ROS安装配置与基本语法-入门笔记

    while not rospy.is_shutdown(): # 在这里添加你的代码 rospy.loginfo("Hello World!") # 休眠 rate.sleep() if __name__ == '__main__': try: example_node() except rospy.ROSInterruptException: ...

    linux驱动学习去开发入门

    # The current directory is passed to sub-makes as argument PWD := $(shell pwd) INSTALLDIR = /home/tekkaman/working/rootfs/lib/modules CROSS_COMPILE =/home/tekkaman/working/crosstool-gcc410-k26222/...

    北大天网搜索引擎TSE源码

    find "iMD5.GenerateMD5( (unsigned char*)iPage.m_sContent.c_str(), iPage.m_sContent.length() )" Comment the right paragraph. iv. find "if (iUrl.IsImageUrl(strUrl))" Comment the right paragraph. 2....

Global site tag (gtag.js) - Google Analytics