程式碼如下:
import urllib2,sys,os
import hashlib
word = sys.argv[1]
content = urllib2.urlopen(word).read()
FILE = open('/home/faryne/python/'+hashlib.sha224(word).hexdigest()+'.html','w')
FILE.write(content)
FILE.close()
留言