Comments (3)
已经修改,请看: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.
我觉得后面 cd python | python | import mypm 的示例可以改成 cd anotherpython | python | import mypm, sys | sys.path ,以此显示告知的效果。不理解为什么老师使用的是引用当前工作文件夹中的模块的例子?
from starterlearningpython.
你说的有道理。但是并没有在这方面**太多。我倒是觉得,把你这个问题发到教程中,让学习者来体会,更好一些。这样能引导大家动脑筋。比看我写的强多了。多谢你的指正。
from starterlearningpython.
Related Issues (20)
- 关于 独立性 是否可以多说一点? 208.md HOT 1
- 关于 多重继承 209.md
- 209.md 调用覆盖方法 小节中的表述问题。 HOT 1
- 109.md 问题 HOT 1
- 113.md 问题 HOT 1
- 请教老师集合的问题 HOT 1
- 书籍gitbook版地址 HOT 1
- French Navy last morse code message HOT 1
- 228.md(第三方库)图片显示问题。 HOT 1
- 105.md 错别字修正 HOT 2
- 109.md-错别字纠正 即第一个参数传入的"pytohn" HOT 3
- 建议把 StarterLearningPython/ 目录下的md文件集中到一个子目录下 HOT 1
- 字符串(4) - .format() HOT 1
- 大学如果开设齐老师这门课就好了 HOT 1
- 跟老齐学Python 这个例子怎么运行不对? HOT 3
- 文章404 HOT 3
- Learning sequence HOT 1
- 211.md中的问题 HOT 1
- 如何批量读取多个.xlsx数据文件? HOT 2
- 请教关于引用的一个问题 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starterlearningpython.