ÎÒÿ´ÎÉÏ´«µÄÎļþ¶Áµ½µÄÊý¾Ý¶¼²»ÕýÈ·¡£2M µÄͼƬ¶ÁµÃ10¶àK ¡£¡£ÄÄλ´óÏÀ¿ÉÒÔ°ï°ïÎÒ°¡¡£
#!D:\ProgrammerTools\python26\python.exe
#encoding=utf-8
import cgitb
import os
cgitb.enable()
import cgi,urllib, md5
print "Content-type: text/html"
print""
print """<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>asdsadas</title></head><body>"""
form = cgi.FieldStorage()
if form.has_key('file'):
fileitem = form['file']
if not fileitem.file:
print "Error: not a file upload.<P>"
else:
datas=[]
while True:
data = fileitem.file.read(1024)
if not data:
break
datas.append(data)
for d in datas:
file(cgi.escape(fileitem.filename).decode("utf-8"),'wb').write(d)
else:
Ïà¹ØÎÊ´ð£º
pythonÈçºÎ½âѹËõ.ZµÄÎļþ°¡£¬ÔÚwindowsϵͳ»·¾³ÏÂ
Q7Z ÊÇÒ»¿î»ùÓÚ Qt4 µÄ 7z ѹËõ¹¤¾ß
http://code.google.com/p/k7z/
¿ªÔ´µÄ
http://sourceforge.net/projects/k7z/
LSµÄÄܾßÌå˵һ˵Âð£¿
......
ÕÕ×ÅÊéÉÏдµÄ£¬Ö´ÐÐʱ±¨´í£¨Python2.6£©
import wx
class InsertFrame(wx.Frame):
def __init__(self,parent,id):
wx.Frame.__init__(self,parent,id,'F ......
http://www.cioage.com/art/200906/78173.htm
¾ÝϤ£¬¿¨°Í˹»ùʵÑéÊÒÉÏÖܼì²âµ½Ò»ÖÖ¹¥»÷Èû°àϵͳµÄжñÒâ³ÌÐò£¬¸Ã³ÌÐòµÄ¹¥»÷Ä¿±êÊÇÒ»¼ÒÓ¡¶ÈÄáÎ÷ÑÇÒÆ¶¯µç»°ÔËÓªÉ̵ÄÓû§¡£¸ÃľÂíÓÉÒ»ÖֽРPythonµÄ½Å±¾ÓïÑÔ±àд£¬Ëü» ......
#include <Python.h>
#include <string>
#include <vector>
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
vector <string> ......