The python3 version is Python 3.5.3 in my os.
(python3版本是我的操作系统中的Python 3.5.3。)
mkdir workspace
cd workspace
vim print.py
print("i am learning")
Saved and exit.
(保存并退出。)
python3 print.py
i am learning
As far as i knew, python source file was parsed and compiled into pyc file when to execute it.
(据我所知,python源文件被解析并在执行时编译成pyc文件。)
ls
print.py
There is no pyc file in workspace directory,where is the complied print.py
file then?
(工作区目录中没有pyc文件,那么print.py
文件在哪里?)
sudo find / -name ".pyc"
The find command still can't search pyc
file such as print.pyc
.
(find命令仍然无法搜索pyc
文件,例如print.pyc
。)
python3 -m compileall
can create the compiled file for print.py
manually,where is the compiled file for print.py
created by python itself? (python3 -m compileall
可以创建编译文件print.py
手动,其中用于编译的文件print.py
Python本身产生的?)
Does python3 delete the print.pyc
after executing python3 print.py
?
(是否python3删除print.pyc
执行后python3 print.py
?)
ask by scrapy translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…