摘要: 如下是django中做url验证的正则表达式:regex = re.compile( r'^(?:http|ftp)s?://' # http:// or https:// r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(... 阅读全文
posted @ 2015-08-26 11:50 呱呱老师 阅读(3502) 评论(0) 推荐(0)
摘要: 1.os.path.abspath(path)返回path规范化的绝对路径。>>>os.path.abspath('test.csv')'C:\\Python25\\test.csv'>>>os.path.abspath('c:\\test.csv')'c:\\test.csv'>>>os.path... 阅读全文
posted @ 2015-08-26 10:49 呱呱老师 阅读(250) 评论(0) 推荐(0)
摘要: #ifndef __NewAudioEngineDemo__NewAudioEngineDemo__#define __NewAudioEngineDemo__NewAudioEngineDemo__#include "cocos2d.h"#include "ui/CocosGUI.h"#inclu... 阅读全文
posted @ 2015-08-26 10:20 呱呱老师 阅读(208) 评论(0) 推荐(0)