AshClementson
V2EX  ›  Python

是我电脑坏了还是语法真的有问题。。

By AshClementson at 2017 年 3 月 23 日 · 1653 次点击
class Aaa():
def __init__(self,name):
self.name=name

def ddd(self):
print(self.name+" bbbbbbb")


ccc=Aaa(name='aaa')
ccc.ddd()

class Bbb(Aaa):
def __init__(self,name):
super().__init__(name)




myccc=Qqqqq(name='hhh')
myccc.ddd()



求大佬指教到底哪里出了问题。。
1 条回复
AshClementson
   1
AshClementson  
OP
   2017 年 3 月 23 日
悬赏 5 块人民币好吧,微信支付宝都行=。=
推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
© 2026 V2EX · 22ms · 3.9.8.5