Coder Social home page Coder Social logo

Comments (3)

qiwsir avatar qiwsir commented on July 22, 2024

已经修改,请看:https://github.com/qiwsir/StarterLearningPython/blob/master/219.md
,是否妥当?请指正。

2015-12-07 11:54 GMT+08:00 Hsinwe [email protected]:

应该是 export PYTHONPATH = /home/qw/python:$PYTHONPATH ,然后执行 source
/etc/profile 。
最后的代码段中,cd python 后使用 python 命令进入交互模式,然后引用 mypm 模块一定会成功,因为 sys.path
返回的列表中第 0 项 '' 空字符串就是指当前文件夹 (/python) 。


Reply to this email directly or view it on GitHub
#36.

QiWei

from starterlearningpython.

Hsinwe avatar Hsinwe commented on July 22, 2024

我觉得后面 cd python | python | import mypm 的示例可以改成 cd anotherpython | python | import mypm, sys | sys.path ,以此显示告知的效果。不理解为什么老师使用的是引用当前工作文件夹中的模块的例子?

from starterlearningpython.

qiwsir avatar qiwsir commented on July 22, 2024

你说的有道理。但是并没有在这方面**太多。我倒是觉得,把你这个问题发到教程中,让学习者来体会,更好一些。这样能引导大家动脑筋。比看我写的强多了。多谢你的指正。

from starterlearningpython.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.