목록파이썬오류 (2)
메이플의 개발 스토리

안녕하세요. 메이플입니다. tkinter 라이브러리를 사용하는데 특정 함수명이 선언되어 있지 않다는 오류가 뜨는 경우가 종종 있습니다. 그런 경우에는 아래의 코드처럼 선언되어 있지 않다고 오류가 뜬 함수를 추가해주면 해결할 수 있다. from tkinter import filedialog
Python
2021. 12. 15. 15:48
[파이썬 오류] - match, SyntaxError: invalid syntax
파이썬 오류 파이썬 자습서를 통해 공부하는 중 match 문법을 사용한 코드에서 오류가 발생했습니다. 파이썬 자습서 : https://docs.python.org/ko/3/tutorial/controlflow.html#match-statements 코드 def http_error(status): match status: case 400: return "Bad request" case 404: return "Not found" case 418: return "I'm a teapot" case _: return "Something's wrong with the internet" 출력 결과 File "", line 2 match status: ^ SyntaxError: invalid syntax 확인해보니 제..
Python
2021. 12. 9. 10:10