Discuss / Python / 如何调用自定义函数

如何调用自定义函数

Topic source

redglass2015

#1 Created at ... [Delete] [Delete and Lock User]

用Notepad++编辑的函数,要放在那里才能在编译器中直接调用呢?小白,还请大神告知

渊博孙

#2 Created at ... [Delete] [Delete and Lock User]

写好的脚本用.py格式存起来,然后在命令行中,使用 python + 你写的脚本 执行就可以了。

追梦心飞

#3 Created at ... [Delete] [Delete and Lock User]
我也不是很懂啊,比如我在E盘的Python文件夹里保存了一个hello.py的文件,然后打开Python3.4.3的Shell,要怎么运行我的hello.py文件呢?

  • 1

Reply