# -*- coding: utf-8 -*- import urllib.request urlstr=urllib.parse.quote('鋼鐵人') url = 'http://tw.movie.yahoo.com/moviesearch_result.html?qmv='+urlstr response = urllib.request.urlopen(url) html = response.read().decode('utf_8') print(html)
# -*- coding: utf-8 -*- import urllib.request urlstr=urllib.parse.quote('鋼鐵人') url = 'http://tw.movie.yahoo.com/moviesearch_result.html?qmv='+urlstr response = urllib.request.urlopen(url) html = response.read().decode('utf_8') print(html)