摘要:
如:#define SDL_INIT_TIMER 0x00000001#define SDL_INIT_AUDIO 0x00000010#define SDL_INIT_VIDEO 0x00000020#define SDL_INIT_CDROM 0x00000100#define SDL_INIT_JOYSTICK 0x00000200#define SDL_INIT_NOPARACHUTE 0x00100000 /**< Don't catch fatal signals */#define SDL_INIT_... 阅读全文
摘要:
写得非常的详细、莪就不细说了、http://www.cnblogs.com/huxi/archive/2010/07/04/1771073.html自己只组合了一个最通用的例子import reURL = 'http://10.188.53.247:8080/recommend/vav'pattern = re.compile(r'.*\/?')match = pattern.match(URL)if match: print match.group()else: print "None"如果文字匹配、就打印匹配字符、如果不匹配、便打印Non 阅读全文