Watch 1 Star 0 Fork 0

Zerolone / pythonstudyPython

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
学习中。。。 spread retract

Clone or download
011.py 339 Bytes
Copy Edit Web IDE Raw Blame History
Zerolone authored 2017-10-04 14:38 . asdf
#!/usr/bin/python
class a:
def aaa(self):
print 'a--aaa';
class b:
def aaa(self):
print 'b--bbb';
class c(a):
pass;
class d(b):
pass;
class e(a,b):
pass;
class f(b,a):
pass;
a1 = a(); a1.aaa();
b1 = b(); b1.aaa();
c1 = c(); c1.aaa();
d1 = d(); d1.aaa();
e1 = e(); e1.aaa();
f1 = f(); f1.aaa();

Comment ( 0 )

Sign in for post a comment

Python
1
https://gitee.com/Zerolone/pythonstudy.git
git@gitee.com:Zerolone/pythonstudy.git
Zerolone
pythonstudy
pythonstudy
master

Search

231008 48f1a665 1899542 231017 9a6720c6 1899542