关于我的上一个问题.我有一个上传字段,用户可以选择一张图片,然后调整大小(客户端通过JavaScript),base64编码(也是JavaScript)并通过隐藏字段发送.我这样做是为了节省用户的带宽(例如使用3G连接).
但我不知道如何不在标签<input type="file" name="file" id="file" class="span4">内发送用户上传文件<form>.显而易见的解决方案是从表单中排除文件上载字段,但这会杀死我的布局.这可能吗?
当然你们都知道答案,这很容易,但我是python的新手:)
我在互联网上找到了一段代码,从雅虎财经中读取股票价格
#!/usr/bin/env python # # Copyright (c) 2007-2008, Corey Goldberg (corey@goldb.org) # # license: GNU LGPL # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. import urllib """ This is the "ystockquote" module. This module provides a Python API for retrieving …