【文件属性】:
文件名称:matlabami代码-ReproduciblePythonTutorial:PlayablePython教程
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-07 21:14:20
系统开源
matlab
ami代码可重现
Python
的技巧和工具
目录结构
创建一个具有基本结构的空项目
.
+--
data
|
+--
raw
|
+--
processed
|
+--
src
|
+--
PythonModules
|
+--
tests
|
+--
notebooks
|
+--
exploratory
|
+--
expositionary
|
+--
references
|
+--
papers
|
+--
tutorials
|
+--
results
+--
README.md
+--
LICENSE.txt
综合项目模板:
-
Python
包模板
跨平台目录路径
使路径独立于平台并且都与目录结构相关
import
os
#
current
path
current_path
=
os
.
getcwd
()
#
join
paths
for
Windows
and
Unix
code_path
=
os
.
path
.
join
(
current_path
,
"src"
)
#
make
sure
paths/files
【文件预览】:
ReproduciblePythonTutorial-master
----src()
--------ArraySum.py(101B)
--------tests()
--------__init__.py(1B)
----README.md(7KB)