'AttributeError' 태그의 글 목록 — 뚝딱이

AttributeError

ERROR

[Python] AttributeError: module 'math' has no attribute 'lcm'

문제 Python math라이브러리의 lcm을 쓰는데 발생한 에러이다. import math print(math.lcm(10,20)) 이는 파이썬 버전이 3.9 이전 버전일 때 발생하며 버전을 3.9로 업그레이드 하면 오류가 해결된다. 해결