摘要: 转自 http://www.cnblogs.com/jebeljebel/p/4006433.html 侵删 num = "1" #unicodenum.isdigit() # Truenum.isdecimal() # Truenum.isnumeric() # Truenum = "1" # 全 阅读全文
posted @ 2017-06-09 10:44 木易小邪 阅读(677) 评论(0) 推荐(0) 编辑
摘要: 7-9. 翻译(a) 编写一个字符翻译程序(功能类似于Unix 中的tr 命令)。我们将这个函数叫做tr(),它有三个字符串做参数: 源字符串、目的字符串、基本字符串,语法定义如下:def tr(srcstr, dststr, string)srcstr 的内容是你打算“翻译”的字符集合,dsrst 阅读全文
posted @ 2017-06-09 10:35 木易小邪 阅读(336) 评论(1) 推荐(0) 编辑