摘要: flask的request模块的属性(参考) #代码示例,仅仅是为了测试request的属性值 @app.route('/login', methods = ['GET','POST']) def login(): if request.method == 'POST': if request.fo 阅读全文
posted @ 2017-11-02 16:10 潇潇、寒 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 1、os.name 判断现在正在实用的平台,Windows返回'nt';linux返回'posix' 2、os.getcwd() 得到当前工作的目录。 3、os.listdir() 4、os.remove 删除指定文件 5、os.rmdir() 删除指定目录 6、os.mkdir() 创建目录(只能 阅读全文
posted @ 2017-11-02 15:36 潇潇、寒 阅读(254) 评论(0) 推荐(0) 编辑