ÇóÒ»¸öpython¿ªÔ´³ÌÐò
ËÓÐpython django ¿ª·¢µÄ³ÌÐò »òÕßÖªµÀÄÄÓÐ
¸æËßÏ ÎÒÒªÒ»¸ö¿ªÔ´µÄ³ÌÐòѧϰÓà ¸Ð¾õ×Ô¼º±à³ÌºÜ²»¹æ·¶
µã»÷²é¿´¡¶Django Web ¿ª·¢Ö¸ÄÏ¡·
http://www.ibm.com/developerworks/cn/linux/l-django/
Äã˵µÄÊÇdjango bookÄDZ¾Êé°É ÄDZ¾ÎÒ¿´ÁË ºìÉ«µÄ
¶Ô£¬¾ÍÊÇÄDZ¾Êé¡£
Ïà¹ØÎÊ´ð£º
ѧϰpythonµÄ7±¾Êé
°üÀ¨6±¾chm£¬Ò»±¾pdf×ÊÁÏ
¶ÔѧϰpythonÓкܴóµÄ°ïÖú
http://download.csdn.net/source/619791
¾«ÐÄËѼ¯£¬²»Òª»ý·Ö£¬ÄóöÀ´·ÖÏí
лл¥Ö÷£¬ÐÁ¿àÁË~
lz ×îºÃ°ÑÊéÃûºÍ¼òµ¥½éÉܼÓÉ ......
ÄÄλǰ±²¿ÉÒÔ¸øÎÒ¸öPythonдµÄ¡¾¿ÉÔËÐеÄÔ´´úÂë¡¿£¬ÊµÏÖÒÔϹ¦ÄÜ£º
1.¶ÔÖ¸¶¨¶Ë¿ÚµÄ¼àÌý²¢½ØÈ¡¡¾Ö¸¶¨¡¿Êý¾Ý°ü
2.Äܶԡ¾×Ô¼º¶¨ÒåµÄ¡¿ÐÒé°ü½øÐнâÎö
Íò·Ö¸Ðл£¡£¡£¡
ÎÒÀ´¶¥ thy38
......
code:
remote = urllib.urlopen(remote_file)
local_file = open(local_path_name, "wb")
local_file.write(remote.read())
ÎÊÌâ:
ÓÃÕâÖÖ·½Ê½¿ÉÒԺܺõÄÏÂÔØÔ¶³ÌÎļþ, ÏÖÔÚÐèÒª¼ÓÈëÒ»¸ö½ø¶ÈÏÔʾµÄ¹¦Ä ......