今天写代码的时候出现了这个错误:No module named '_future_'
后来发现future这个模块前后是两个横线
源代码:
from _future_ import print_function
修改后:
from __future__ import print_function
今天写代码的时候出现了这个错误:No module named '_future_'
后来发现future这个模块前后是两个横线
源代码:
from _future_ import print_function
修改后:
from __future__ import print_function