import sys
import io
import urllib.request as dw

sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8');
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8');

print('hi');
print("하이");

imgUrl="http://cafefiles.naver.net/20150404_41/onehodang2_1428121325007MWF8c_JPEG/10.jpg";
htmlURL="http://google.com";
savePath1 = "./test1_img.jpg";
savePath2 = "./index.html";

dw.urlretrieve(imgUrl,savePath1);
dw.urlretrieve(htmlURL,savePath2);

print("다운로드완료");
