摘要: 一、校验数字的表达式 1. 数字:^[0-9]*$ 2. n位的数字:^\d{n}$ 3. 至少n位的数字:^\d{n,}$ 4. m-n位的数字:^\d{m,n}$ 5. 零和非零开头的数字:^(0|[1-9][0-9]*)$ 6. 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+( 阅读全文
posted @ 2018-07-12 20:05 Leo_L 阅读(133) 评论(0) 推荐(0) 编辑
摘要: [python] view plaincopyprint? >>> import cPickle as pickle >>> t1 = ('this is a string', 42, [1, 2, 3], None) [python] view plaincopyprint? [python] v 阅读全文
posted @ 2018-07-12 17:08 Leo_L 阅读(225) 评论(0) 推荐(0) 编辑