Python3
angus_he
这个作者很懒,什么都没留下…
展开
-
杨辉三角
今天学习了廖雪峰老师的python教程,学到杨辉三角函数的时候很迷茫,他的基本格式如下: [1], [1, 1], [1, 2, 1], [1, 3, 3, 1], [1, 4, 6, 4, 1], [1, 5, 10, 10, 5, 1], [1, 6, 15, 20, 15, 6, 1], [1, 7, 21, 35, 3...转载 2019-08-07 13:22:08 · 174 阅读 · 0 评论 -
Python3 匹配邮箱和域名
# 匹配邮箱和域名,然后域名在前,邮箱在后。并且去重#! Python3# mailRegex.py - find email address on the clipboardimport re, pyperclip# 匹配域名mailRegex01 = re.compile(r'''( ' (@ [a-zA-Z0-9.-]+ (\.[a-zA-Z]...原创 2019-01-13 21:19:00 · 1507 阅读 · 0 评论