作者Twinkling (哈罗)
看板Python
标题[问题] python有include档案的功能吗
时间Tue Jul 17 14:23:16 2007
我知道import可以引入一些定义的函数或是class
但是似乎没办法引入定义的参数
例如: abc = "哈罗"
像我们一般在写C时 会把定义档写在.h档里面
想问问看python可以做到类似这样的功能吗
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.110.138.174
1F:推 elic:import xxx 07/17 14:59
2F:→ elic:print xxx.abc 07/17 14:59
3F:→ ykjiang:from xxx import abc 08/06 18:45