python的abc
May182009
作者:2hei 发布:2009-05-18 22:58 分类:python 阅读:2,896 views python的abc已关闭评论
pyhon中很简单的模块调用
#!/usr/bin/python
# Filename: abc.py
def mymo():
print ‘hello world!’
#!/usr/bin/python
# Filename: ehcoabc.py
import abc
abc.mymo()
执行结果如下:
AttributeError: ‘module’ object has no attribute ‘mymo’
原因是abc在python中比较特殊,跟已有的module模块冲突,换一下名字就可以了。
本文固定链接: http://2hei.net/python-module-abc.html | 2hei's site
该日志由 2hei 于2009年05月18日发表在 python 分类下,
原创文章转载请注明: python的abc | 2hei's site
原创文章转载请注明: python的abc | 2hei's site
您可能还会对这些文章感兴趣!
- python segmentation faults
- wndows下使用Python来修改文件时间戳
- python解析xml的字符集问题的处理(3)
- useful python modules zz
- run or spawn in pexpect
- compile pyhton2.7 with zlib
- nagios plugins check_proc_runtime
- BeautifulSoup has bug in rss tag ‘link’(1)
- “小三” 也能玩大蛇
- ImportError: No module named xen.xm
- pexpect Timeout exceeded in read_nonblocking()
- python use BeautifulSoup crawl weather forecast
报歉!评论已关闭.
最新文章
- apache mod_python psp
- Connect to Dell iDRAC6 virtual console
- 使用rrdtoo resize修改已有rrd文件的数据量
- MAC下修改被HP打印机占用的8080端口
- mark: info.3g.qq 宕机
- mark:现在douban.com 豆瓣挂了
- postfix删除mail中的邮件列表
- Mozilla making progress with Firefox’s long journey to multiprocess
- munin监控jmx
- All of Wikipedia can be installed to your desktop in just 30 hours
- Winamp lovers beg AOL to open source code
- Microsoft brings rich node.js support to Visual Studio
- New backdoor worm found attacking websites running Apache Tomcat
- GitHub resets user passwords following rash of account hijack attacks
- Stability first: Ubuntu’s Mir won’t replace X in 14.04 desktop
- lvs ksoftirqd进程占用大量CPU
- monit 一个小巧的linux下监控/故障恢复工具
- nrpe Error: Could not complete SSL handshake. 5
- Canonical “abused trademark law” to target a site critical of Ubuntu privacy
- nagios check_udp 就是一残废
热门文章
- Linux Keyboard shortcut keys - 69,319 views
- mvnforum-1.0.0-rc3+resin+oracle9i下搭建 - 18,086 views
- linux下支持https的压力测试工具 - 14,665 views
- Cacti网络监控软件的安装、配置与使用连载 (2) — By 2hei - 13,860 views
- mark: info.3g.qq 宕机 - 12,295 views
- mark:现在douban.com 豆瓣挂了 - 10,769 views
- Code review 工具gerrit之体验 - 9,406 views
- nginx代理模式下,伪造X-Forwarded-For头的测试 - 7,893 views
- Connect to Dell iDRAC6 virtual console - 7,783 views
- nginx lua as http client - 7,731 views
标签云
alexa
apache
bash
BeautifulSoup
chm
discuz
django
dosevasive
driver
E63
EC2
facebooke
fastdfs
football
freebsd
google
hadoop
hbase
IaaS
java
jvm
kernel
linux
lua
mac
memcached
microsoft's bug
mod_deflate
mod_expires
mt install
mysql
nagios
nginx
openssh
oracle
php
python
R710
resin
rrdtool
shell
siege
ubuntu
vnc
xen
文章分类
- c (5)
- cloud (3)
- database (9)
- dfs (1)
- English (5)
- git (1)
- hbase (2)
- IaaS (2)
- IT (5)
- java (17)
- linux (22)
- live (9)
- nginx (8)
- OpenSource (123)
- other (4)
- others (113)
- php (2)
- python (23)
- resin (17)
- security (4)
- shell (7)
- ubuntu (1)
文章归档
- 2014年二月
- 2013年十二月
- 2013年十一月
- 2013年十月
- 2013年九月
- 2013年六月
- 2013年五月
- 2013年四月
- 2013年一月
- 2012年九月
- 2012年八月
- 2012年七月
- 2012年五月
- 2011年十二月
- 2011年十一月
- 2011年十月
- 2011年九月
- 2011年八月
- 2011年七月
- 2011年六月
- 2011年二月
- 2011年一月
- 2010年十二月
- 2010年十一月
- 2010年十月
- 2010年九月
- 2010年八月
- 2010年七月
- 2010年六月
- 2010年五月
- 2010年四月
- 2010年三月
- 2010年二月
- 2010年一月
- 2009年十二月
- 2009年十一月
- 2009年九月
- 2009年八月
- 2009年七月
- 2009年五月
- 2009年四月
- 2009年三月
- 2009年二月
- 2008年十二月
- 2008年十一月
- 2008年十月
- 2008年九月
- 2008年八月
- 2008年七月
- 2008年六月
- 2008年五月
- 2008年四月
- 2008年三月
- 2008年二月
- 2008年一月
- 2007年十二月
- 2007年十一月
- 2007年十月
- 2007年九月
- 2007年七月
- 2007年六月
- 2007年五月
- 2007年四月
- 2007年三月
- 2007年二月
- 2007年一月
- 2006年十二月
最新评论
- 2hei发表在《mark: info.3g.qq 宕机》
- 2hei发表在《mark:现在douban.com 豆瓣挂了》
- 糖糖发表在《换掉Movable Type,启用Worldpress》
- free movie download发表在《sftp get “Connection closed”》
- Emory发表在《nginx代理模式下,伪造X-Forwarded-For头的测试》
- Juegos发表在《pdf and postscript》
- educational grants发表在《some Java decompilers — 一些java反编译工具》
- opthamologists发表在《[notice] child pid 19818 exit signal Bus error (7)》
- irie insurance发表在《linux下支持https的压力测试工具》
- registered nurse发表在《linux下支持https的压力测试工具》
最新日志热评日志随机日志
- apache mod_python psp
- Connect to Dell iDRAC6 virtual console
- 使用rrdtoo resize修改已有rrd文件的数据量
- MAC下修改被HP打印机占用的8080端口
- mark: info.3g.qq 宕机
- mark:现在douban.com 豆瓣挂了
- postfix删除mail中的邮件列表
- Mozilla making progress with Firefox’s long journey to multiprocess
- munin监控jmx
- All of Wikipedia can be installed to your desktop in just 30 hours
最新评论
糖糖:
埃母梯,是剁么的回晃;埃母梯,是free movie download:
i like it sftp iEmory:
It is very diffiJuegos:
I was surfing loeducational grants:
Thanks for an idopthamologists:
Thanks for someirie insurance:
Great writing! Iregistered nurse:
Wow this is a grliumingzhu:
🙂physical therapist:
It’s really a ni
标签云集
博客统计
- 日志总数:340 篇
- 评论总数:69 篇
- 标签数量:151 个
- 链接总数:0 个
- 建站日期:
- 运行天数:18654 天
- 最后更新:2017-9-18
最活跃的读者