Skip to content

invalid syntax error #5

Open
Open

Description

@sikyunlee

image

Experienced syntax error on the following line. Any suggestions on how to resolve this problem?
위와 같은 syntax error를 겪어서 Run이 안 되고 있습니다. 해당 문제를 해결하기 위해 어떻게 해야하나요?

*Additional Question/추가 질문:
Made a "news" folder and a "news_data" sub-folder within the "news" folder. Is this correct according to the sample code, or did I do something wrong?
"news" 폴더 내 "news_data" 폴더를 만들어 기사들을 저장해놓고 Run 중 오류가 발생했습니다. 해당 폴더링 순서상 잘못된 부분이 있었나요?

Activity

  1. blissray commented on Jul 10, 2018

    @blissray
    Contributor

    안녕하세요. 갑자기 무한 fork가 생겨서 깜짝놀랬습니다. 오늘 에서야 확인했습니다. 무슨 일이 있나요 ㅎㅎ

    • 사진상으로 11번째 줄을 확인할 수 가없습니다. 일반적으로 저런 에러가 뜰때는 괄호가 제대로 안 닫혀 있을 경우 입니다. 확인 부탁드립니다.
    • 두번째 질문에 대한 코드 링크를 주실수 있으세요? (4달전 강의라 기억이 안납니다)
  2. sikyunlee commented on Jul 10, 2018

    @sikyunlee
    Author

    안녕하세요 교수님?

    해당 코드 11번째 line 내용을 첨부와 같이 드리며,
    소스 코드도 아래에 첨부 드립니다. (.txt 파일)
    image
    참조 및 검토 의견 부탁 드립니다. (Run이 되지 않아서 발을 동동 굴리고 있는 1인 입니다..)
    감사합니다.

    *추가 질문:
    Directory 설정을 잘못하여 열리지 않는건지 헷갈리는 부분이 있습니다. 소스 코드 내,
    def get_file_list(dir_name):
    return os.listdir(dir_name)
    에 "dir_name"을 어떻게 설정해야 해당 directory를 spyder가 엑세스 하나요?
    source code_query.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions