강의

멘토링

커뮤니티

Inflearn Community Q&A

jhkim7492445's profile image
jhkim7492445

asked

Free Python Tutorial (Basic) - Become a Developer in 6 Hours

Numeric function

from math import * 안됩니다.

Written on

·

250

0

안녕하세요

강의 잘 듣고 있습니다.

다만 cmd 창에서 pip install math 후에

from math import*을 실행하는데 안되서요

다른 방법이 있을까요?

python

Answer 1

0

cmd 창에서 실행하는게 아닌 작성 중이신 py 파일 안에 적어놓으셔야 합니다.

예를 들어, py 파일을 새로 만드신 다음에

from math import *

 

print(pi)

 

이런식으로 작성하셔야 합니다.

jhkim7492445's profile image
jhkim7492445

asked

Ask a question