__future__

MA·2022년 7월 8일
0
# In python version 2
print "hello world"

# From python version 3
print("Hello world")

Python2는 print를 statement

Python3는 print를 function

from __future__ import print_function

을 통해, 최신 기능(print_function)을 쓸 수 있다고 한다.

profile
급할수록 돌아가라

0개의 댓글