Skip to content

Instantly share code, notes, and snippets.

@lufeihaidao
Created April 13, 2014 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lufeihaidao/10587641 to your computer and use it in GitHub Desktop.
Save lufeihaidao/10587641 to your computer and use it in GitHub Desktop.
Q2 of python challenge in python
# 我的代码,判断每个字符是否是字母
import re
astring = '''copy from the source page'''
bstring = ''
for a in astring:
if re.match('[a-zA-Z]',a):
bstring = bstring+a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment