#!/usr/bin/env python3
# -*- coding: utf-8 -*-

class Make_Plane(object):
def __init__(self, color, whellunm):
self.color = color
self.whellunm = whellunm

def mv(self):
self.test = "test local out"
print("fie la...")

def gsh(self):
self.mb()
#本类其它函数非__init__函数中的变量调用方法
print(self.test)

print("ge shi hua color is:%s,number is:%d" %(self.color, self.whellunm))
#如果是__init__里的变量就不用再调用函数名了,可以直接拿来用。

if __name__ == '__main__':
a = Make_Plane("green", 22)
a.gsh()