
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
안녕하세요! 1주차 숙제를 하다가 몇 가지 의문점이 있어 질문을 드립니다. 미리 도움 주심에 감사드립니다!
import urllib.request
url = 'https://ssl.pstatic.net/imgfinance/chart/item/area/year3/005930.png'
urllib.request.urlretrieve(url, "samsung.jpg")
보고 계신 화면 전체를 캡처해 주시면, 튜터님들이 빠르게
상황을 이해할 수 있어요.
작성한 코드 및 에러 메세지
import openpyxl
import urllib.request
wb = openpyxl.load_workbook('관리종목.xlsx')
sheet = wb['종목']
new_rows = list(sheet.rows)[1:]
for row in new_rows:
url = 'https://ssl.pstatic.net/imgfinance/chart/item/area/year3/row[1].value'
urllib.request.urlretrieve(url, row[0].value)
File "<ipython-input-37-0bdffc5518dd>", line 11
url = 'https://ssl.pstatic.net/imgfinance/chart/item/area/year3/row[1].value'
^
IndentationError: expected an indented block after 'for' statement on line 9
