python基础知识

1. 注释:#单行注释,’’’多行注释’’’


2. 多元赋值:x,y,z=1,2,'string'   等价于   (x,y,z)=(1,2,'string')


3. 异常处理:

[python]  view plain copy
  1. for a in [1,2,3]:  
  2. try:    
  3.     fobj=open(fname,'r')    
  4. except IOError,e:    
  5.     print "file open error: ",e  
  6.     continue    
  7. else:    
  8.     for eachLine in fobj:    
  9.         print eachLine,    
  10.     fobj.close()  

4. 什么是真什么是假:

[python]  view plain copy
  1. >>> if '' or {} or [] or 0 or False :  
  2. ...    print 'false'  
  3. ...  
  4. >>> if 'sdfs' and {1:'1'and [1,2and 1 and True :  
  5. ...    print 'adfasdf'  
  6. ...  
  7. adfasdf  
  8. >>>  

5. isinstance()type()

[python]  view plain copy
  1. from types import *    
  2.     
  3. def displayNumType0(num) :    
  4.     print num,'is',    
  5.     if type(num) is IntType :    
  6.         print 'an integer'    
  7.     elif type(num) is LongType :    
  8.         print 'a long'    
  9.     elif type(num) is FloatType :    
  10.         print 'a float'    
  11.     elif type(num) is ComplexType :    
  12.         print 'a complex'    
  13.     else :    
  14.         print 'not a number at all !!!'    
  15.     
  16.             
  17. def displayNumType1(num):    
  18.     print num, 'is',    
  19.     if(isinstance(num,(int,long,float,complex))):    
  20.         print 'a number of type: ',type(num).__name__    
  21.     else:    
  22.         print 'not a number at all !!!'    

6. 深拷贝和浅拷贝:

[python]  view plain copy
  1. >>> person=['name',['savings',100.00]]    
  2. >>> import copy    
  3. >>> hubby=copy.deepcopy(person)    
  4. >>> wifey=copy.deepcopy(person)    
  5. >>> [id(x) for x in person]    
  6. [2213596827744536]    
  7. >>> [id(x) for x in hubby]    
  8. [2213596832582712]    
  9. >>> [id(x) for x in wifey]    
  10. [2213596832582952]    
  11. >>> hubby[0]='suo'    
  12. >>> wifey[0]='piao'    
  13. >>> person,hubby,wifey    
  14. (['name', ['savings'100.0]], ['suo', ['savings'100.0]], ['piao', ['savings'100.0]])    
  15. >>> hubby[1][1]=50.00    
  16. >>> person,hubby,wifey    
  17. (['name', ['savings'100.0]], ['suo', ['savings'50.0]], ['piao', ['savings'100.0]])    
  18. >>>     

7. 字典

[python]  view plain copy
  1. >>> dict = {1:'1',2:'2',3:'3'}  
  2. >>> dict[1]  
  3. '1'  
  4. >>> dict[4]='4'  
  5. >>> dict  
  6. {1'1'2'2'3'3'4'4'}  
  7. >>> dict2 = dict.copy  
  8. >>> dict2 = dict.copy()  
  9. >>> [id(x) for x in dict2.keys()]  
  10. [23569264235692522356924023569228]  
  11. >>> [id(x) for x in dict.keys()]  
  12. [23569264235692522356924023569228]  
  13. >>> dict.items()  
  14. [(1'1'), (2'2'), (3'3'), (4'4')]  
  15. >>> dict.values()  
  16. ['1''2''3''4']  
  17. >>> dict.keys()  
  18. [1234]  
  19. >>> dict.has_key(1)  
  20. True  
  21. >>> dict.get(1)  
  22. '1'  
  23. >>> dict.pop(4)  
  24. '4'  
  25. >>> dict  
  26. {1'1'2'2'3'3'}  
  27. >>> dict.update({4:'4',5:'5'})  
  28. >>> dict  
  29. {1'1'2'2'3'3'4'4'5'5'}  
  30. >>>  

8. 推导式

[python]  view plain copy
  1. >>> [id(x) for x in dict2.keys()]  
  2. [23569264235692522356924023569228]  
  3. >>> [x*2 for x in range(0,6)]  
  4. [0246810]  
  5. >>>sum(len(word) for line in data for word in line.split())   
  6. >>>489  

9. 装饰器

装饰器实际就是函数,它接受函数对象。我们在执行函数之前,可以运行些预备代码,也可以在执行代码之后做些清理工作。这类似于java中的AOP,即面向切面编程,可以考虑在装饰器中置入通用功能的代码来降低程序复杂度。例如,可以用装饰器来:引入日志、增加计时逻辑来检测性能、给函数加入事务的能力  

1) 无参装饰器:  

[python]  view plain copy
  1. @deco2    
  2. @deco1    
  3. def func(arg1, arg2, ...):     
  4.     pass   

这和创建一个组合函数是等价的:    

[python]  view plain copy
  1. def func(arg1, arg2, ...):    
  2.     pass    
  3. func = deco2(deco1(func))    

2) 有参装饰器:  

[python]  view plain copy
  1. @deco1(deco_arg)    
  2. @deco2    
  3. def func():    
  4.     pass    

  这等价于:  

  func = deco1(deco_arg)(deco2(func))  

  示例:  

[python]  view plain copy
  1. from time import ctime,sleep    
  2.     
  3. def tsfunc(func):    
  4.     def wrappedFunc():    
  5.         print '[%s] %s() called' % (ctime(), func.__name__)    
  6.         return func()    
  7.     return wrappedFunc    
  8.   
  9. @tsfunc    
  10. def foo():    
  11.     print 'foo() is invoked !'    
  12.     
  13. foo()    
  14. sleep(4)    
  15.     
  16. for i in range(2):    
  17.     sleep(1)    
  18.     foo()    

运行结果:  

[Tue Jul 17 22:45:54 2012] foo() called  

foo() is invoked !  

[Tue Jul 17 22:45:59 2012] foo() called  

foo() is invoked !  

[Tue Jul 17 22:46:00 2012] foo() called  

foo() is invoked ! 


10. 可变长度的参数

在函数调用时如有不确定的函数参数时,可以用一个可变的参数列表变量处理当超过数目的参数被传入的情形。所有额外的参数会被加入

变量参数元组。

[python]  view plain copy
  1. def  argc(argc1,argc2='default2', *another):  
  2.     print ('first:',argc1)  
  3.     print ('second:',argc2)  
  4.     for eachargc in another:  
  5.         print('another argc:',eachargc,)  
  6. argc('aa','bb','cc','dd')  
  7. argc('aa')  

结果:

('first:', 'aa')

('second:', 'bb')

('another argc:', 'cc')

('another argc:', 'dd')

('first:', 'aa')

('second:', 'default2')

第二个参数为默认参数语法(参数名 = 默认值)

*another 处理额外的参数,到变量参数元组

一个*参数保存到元组

关键字变量参数到字典,

[python]  view plain copy
  1. def dicVarArgc(arg1,arg2='default',**therest):  
  2.     print ('arg1',arg1)  
  3.     print('arg2',arg2)  
  4.     for each in therest.keys():  
  5.         print('arg %s:%s'% (each,str(therest[each])))  
  6. dicVarArgc('first','second',c=2,d=3)  

结果:

('arg1', 'first')

('arg2', 'second')

arg c:2

arg d:3

参数名和参数值成对出现,所以用字典保存

关键字和非关键字可变参数都有可能用在同一个函数中,只要关键字字典是最后一个参数并且非关键字元组先于它之前出现。


11. 特殊函数

hasattr():对象是否存在某个属性。 

getattr():获取对象某个属性

setattr():设置对象某个属性

delattr():删除对象某个属性

issubclass(sub, sup):给出的子类sub 确实是父类sup 的一个子类,则返回True,否则返回False  

isinstance(obj1, obj2)obj1 是类obj2 的一个实例,或者是obj2 的子类的一个实例时,返回True(反之,则为False

dir():查看对象属性列表,只显示属性值

__dict__:查看对象属性,以map格式显示,包含值。

__get__: 当类被“get”的时候,被访问的时候,会默认把访问者的instanceclass信息都传进来

[python]  view plain copy
  1. def __get__(self, instance, owner):    
  2.         print("\t__get__() called")    
  3.         print("\tINFO: self = %s, instance =%s, owner = %s" % (self, instance, owner))    
  4.         return self.f    

apply(func[, nkw][, kw])  

用可选的参数来调用funcnkw 为非关键字参数,kw 关键字参数;返回值是函数调用的返回值。  

filter(func, seq)  

调用一个布尔函数func 来迭代遍历每个seq 中的元素; 返回一个使func 返回值为ture 的元素的序列  

map(func, seq1[,seq2...])  

将函数func 作用于给定序列(s)的每个元素,并用一个列表来提供返回值;如果func None, func 表现为一个身份函数,返回一个含有每个序列中元素集合的个元组的列表。  

reduce(func, seq[, init])  

将二元函数作用于seq 序列的元素,每次携带一对(先前的结果以及下一个序列元素),连续的将现有的结果和下雨给值作用在获得的随后的结果上,最后减少我们的序列为一个单一的返回值;如果初始值init 给定,第一个比较会是init 和第一个序列元素而不是序列的头两个元素。      


12. 静态方法和类方法

[python]  view plain copy
  1. # -*- coding: cp936 -*-    
  2. class AttrClass(object):    
  3.     
  4.     
  5.     def __init__(self,name,age=23,sex='male'):    
  6.         self.name=name    
  7.         self.age=age    
  8.         self.sex=sex    
  9.             
  10.     def show(self):    
  11.         print self.name, self.age, self.sex    
  12.     
  13.     
  14.     #使用staticmethod()内建方法,将一个方法设置为静态方法    
  15.     def staticFoo1():    
  16.         print 'calling static method foo1()'    
  17.     staticFoo1=staticmethod(staticFoo1)    
  18.     
  19.     
  20.     #使用classmethod()内建方法,将一个方法设置为类方法    
  21.     def classMethod1(cls):    
  22.         print 'calling class method1'    
  23.     classMethod1=classmethod(classMethod1)    
  24.         
  25.     #使用修饰符将一个方法设置为静态方法    
  26.     @staticmethod        
  27.     def staticFoo2():    
  28.         print 'calling static method foo2()'    
  29.     
  30.     
  31.     #使用修饰符将一个方法设置为类方法    
  32.     @classmethod    
  33.     def classMethod2(cls):    
  34.         print 'calling class method2'    

13. Override

[python]  view plain copy
  1. class Parent(object):  
  2.     def implicit(self):  
  3.         print "PARENT implicit()"  
  4. class Child(Parent):  
  5.     pass  
  6. dad = Parent()  
  7. son = Child()  
  8. dad.implicit()  
  9. son.implicit()  
  10. class Parent(object):  
  11.     def override(self):  
  12.         print "PARENT override()"  
  13. class Child(Parent):  
  14.     def override(self):  
  15.         print "CHILD override()"  
  16. dad = Parent()  
  17. son = Child()  
  18. dad.override()  
  19. son.override()  
  20. class Parent(object):  
  21.     def altered(self):  
  22.         print "PARENT altered()"  
  23. class Child(Parent):  
  24.     def altered(self):  
  25.         print "CHILD, BEFORE PARENT altered()"  
  26.         super(Child, self).altered()  
  27.         print "CHILD, AFTER PARENT altered()"  
  28. dad = Parent()  
  29. son = Child()  
  30. dad.altered()  
  31. son.altered()  
  32. class Parent(object):  
  33.     def override(self):  
  34.         print "PARENT override()"  
  35.     def implicit(self):  
  36.         print "PARENT implicit()"  
  37.     def altered(self):  
  38.         print "PARENT altered()"  
  39. class Child(Parent):  
  40.     def override(self):  
  41.         print "CHILD override()"  
  42.     def altered(self):  
  43.         print "CHILD, BEFORE PARENT altered()"  
  44.         super(Child, self).altered()  
  45.         print "CHILD, AFTER PARENT altered()"  
  46. dad = Parent()  
  47. son = Child()  
  48. dad.implicit()  
  49. son.implicit()  
  50. dad.override()  
  51. son.override()  
  52. dad.altered()  
  53. son.altered()  
  54. class Other(object):  
  55.     def override(self):  
  56.         print "OTHER override()"  
  57.     def implicit(self):  
  58.         print "OTHER implicit()"  
  59.     def altered(self):  
  60.         print "OTHER altered()"  
  61. class Child(object):  
  62.     def __init__(self):  
  63.         self.other = Other()  
  64.     def implicit(self):  
  65.         self.other.implicit()  
  66.     def override(self):  
  67.         print "CHILD override()"  
  68.     def altered(self):  
  69.         print "CHILD, BEFORE OTHER altered()"  
  70.         self.other.altered()  
  71.         print "CHILD, AFTER OTHER altered()"  
  72. son = Child()  
  73. son.implicit()  
  74. son.override()  
  75. son.altered()  

14. Python模块

[python]  view plain copy
  1. # -*- coding: cp936 -*-    
  2. # 1. 起始行    
  3. # -*- coding: utf-8 -*-    
  4.     
  5. # 2. 模块文档    
  6. """This is a test module again"""    
  7.     
  8. # 3. 模块导入    
  9. import sys    
  10. import os    
  11.     
  12. # 4. 变量定义    
  13. debug=True    
  14.     
  15. # 5. 类定义语句    
  16. class FooClass(object):    
  17.     """FooClass"""    
  18.     flag=1    
  19.     def foo(self):    
  20.         print "FooClass.foo() is invoked, "+str(self.flag)    
  21. # 6. 函数定义语句    
  22. def test():    
  23.     """test function"""    
  24.     foo=FooClass()    
  25.     
  26.     if debug:    
  27.         print 'ran test()'    
  28.         foo.foo()    
  29.         print foo.flag    
  30.     
  31. # 7. 主程序    
  32. if __name__ == '__main__':    
  33.     test()    
  34. print "what are these?"    

15. 参数解析

[python]  view plain copy
  1. from optparse import OptionParser  
  2. parser = OptionParser()  
  3. parser.add_option("-f""--file", dest="filename",  
  4.                   help="write report to FILE", metavar="FILE")  
  5. parser.add_option("-q""--quiet",  
  6.                   action="store_false", dest="verbose", default=True,  
  7.                   help="don't print status messages to stdout")  
  8. (options, args) = parser.parse_args()  
  9. print options,args  

16. 编码规范: pep8  http://www.python.org/dev/peps/pep-0008/


17. yield&generator:

[python]  view plain copy
  1. # -*- coding: utf-8 -*-    
  2. def h():  
  3.     print 'To be brave' #不会执行  
  4.     yield 5  
  5. h()  
  6. def x():  
  7.     m = yield 5 #yield是一个表达式  
  8. x()  
  9. ''''' 
  10. c.next()调用后,h()开始执行,直到遇到yield 5,因此输出结果: 
  11. Wen Chuan 
  12. 当我们再次调用c.next()时,会继续执行,直到找到下一个yield表达式。由于后面没有yield了,因此会拋出异常: 
  13. '''  
  14. def h():  
  15.     print 'Wen Chuan'  
  16.     yield 5  
  17.     print 'Fighting!'  
  18. c = h()  
  19. c.next()  
  20. def h2():  
  21.     print 'Wen Chuan',  
  22.     m = yield 5  # Fighting!  
  23.     print m  
  24.     d = yield 12  
  25.     print 'We are together!'  
  26. c = h2()  
  27. c.next()  #相当于c.send(None)  
  28. c.send('Fighting!')  #(yield 5)表达式被赋予了'Fighting!'  
  29. ''''' 
  30. 中断Generator是一个非常灵活的技巧,可以通过throw抛出一个GeneratorExit异常来终止Generator。Close()方法作用是一样的,其实内部它是调用了throw(GeneratorExit)的。 
  31. '''  
  32. def close(self):  
  33.     try:  
  34.         self.throw(GeneratorExit)  
  35.     except (GeneratorExit, StopIteration):  
  36.         pass  
  37.     else:  
  38.         raise RuntimeError("generator ignored GeneratorExit")  

18. metaclass

元类一般用于创建类。在执行类定义时,解释器必须要知道这个类的正确的元类。解释器会先寻找类属性__metaclass__,如果此属性存在,就将这个属性赋值给此类作为它的元类。如果此属性没有定义,它会向上查找父类中的__metaclass__.如果还没有发现__metaclass__属性,解释器会检查名字为__metaclass__的全局变量,如果它存在,就使用它作为元类。否则这个类就是一个传统类,并用 types.ClassType 作为此类的元类。

在执行类定义的时候,将检查此类正确的(一般是默认的)元类,元类(通常)传递三个参数(到构造器): 类名,从基类继承数据的元组,(类的)属性字典。

元类何时被创建?

[python]  view plain copy
  1. #!/usr/bin/env python    
  2.     
  3. print '1. Metaclass declaration'    
  4. class Meta(type):    
  5.     def __init__(cls, name, bases, attrd):    
  6.         super(Meta,cls).__init__(name,bases,attrd)    
  7.         print '3. Create class %r' % (name)    
  8.     
  9. print '2. Class Foo declaration'    
  10. class Foo(object):    
  11.     __metaclass__=Meta    
  12.     def __init__(self):    
  13.         print '*. Init class %r' %(self.__class__.__name__)    
  14.     
  15. print '4. Class Foo f1 instantiation'    
  16. f1=Foo()    
  17.     
  18. print '5. Class Foo f2 instantiation'    
  19. f2=Foo()    
  20.     
  21. print 'END'    

输出结果:

1. Metaclass declaration

2. Class Foo declaration

3. Create class 'Foo'

4. Class Foo f1 instantiation

*. Init class 'Foo'

5. Class Foo f2 instantiation

*. Init class 'Foo'

END

可见在类申明的时候,就执行了__metaclass__中的方法了,以后在定义类对象的时候,就只调用该类的__init__()方法,MetaClass中的__init__()只在类申明的时候执行了一次。通过metaclass可以动态修改子类的父类。


19. Classmethod 和 static method实现

python在类中,有三种调用method的方法:普通methodstaticmethodclassmethod 

前两个应该都好理解,classmethod就是在调用这个函数的时候,会把调用对象的class object对象隐式地传进去。咦?这个class object不是一个类型?No,在python里面,class object不像静态语言一样是个类型,它在虚拟机中,就是一个对象 

普通method调用需要把自己self作为参数传递,初学的时候怎么着也不能理解,不过看多了就自然熟悉了。比较奇怪的是staticmethodclassmethod不像静态语言一样,通过保留关键字定义,而是使用@staticmethod或者staticmethod()这种builtin函数进行定义。这个@staticmethod到底是个什么东东? 

[python]  view plain copy
  1. @staticmethod    
  2. def foo(x):    
  3.     print(x)    

之前用过java,所以第一反应这是个annotation……唔,确实感觉像个AOP的东西,python里把它称作decorator。如果我们要自己实现一个staticmethod,该怎么写呢? 

研究了下官方的代码,我再改了改,感觉应该这样写: 

[python]  view plain copy
  1. def foo(x):    
  2.     print(x)    
  3. class StaticMethod(object):    
  4.     def __init__(self, function):    
  5.         print("__init__() called")    
  6.         self.f = function    
  7.     def __get__(self, instance, owner):    
  8.         print("\t__get__() called")    
  9.         print("\tINFO: self = %s, instance =%s, owner = %s" % (self, instance, owner))    
  10.         return self.f    
  11.     
  12. class Class1(object):    
  13.     method = StaticMethod(foo)    
  14.         
  15. if __name__ == '__main__':    
  16.     ins = Class1()    
  17.     print("ins = %s, Class1 = %s" % (ins, Class1))    
  18.     print("ins.method = %s, Class1.method = %s" % (ins.method, Class1.method))    
  19.     ins.method('abc')    
  20.     Class1.method('xyz')    

输出结果是: 

__init__() called  

ins = <__main__.Class1 object at 0xece2d0>, Class1 = <class '__main__.Class1'>  

    __get__() called  

    INFO: self = <__main__.StaticMethod object at 0xece5d0>, instance =<__main__.Class1 object at 0xece2d0>, owner = <class '__main__.Class1'>  

    __get__() called  

    INFO: self = <__main__.StaticMethod object at 0xece5d0>, instance =None, owner = <class '__main__.Class1'>  

ins.method = <function foo at 0xeb6c00>, Class1.method = <function foo at 0xeb6c00>  

    __get__() called  

    INFO: self = <__main__.StaticMethod object at 0xece5d0>, instance =<__main__.Class1 object at 0xece2d0>, owner = <class '__main__.Class1'>  

abc  

    __get__() called  

    INFO: self = <__main__.StaticMethod object at 0xece5d0>, instance =None, owner = <class '__main__.Class1'>  

xyz  

嗯,看上去一切都挺顺利,Class1包含了一个变量method,不过这个method其实也是一个特殊处理过的StaticMethod类。这个类中有一个__get__函数,当类被“get”的时候,被访问的时候,会默认把访问者的instanceclass信息都传进来。所以我们看到不管是否调用method()这个函数,只要碰着了method,这个函数就会触发,就会打印出当前instanceclass信息。虽然insClass1instance各有不同,但__get__函数中只是返回foo函数,所以这里调用method之时就没有区别,调用的都是同一个function对象。 

好的,那么classmethod又如何实现呢? 

[python]  view plain copy
  1. def foo2(cls, x):    
  2.     print("foo2's class = "cls)    
  3.     print(x)    
  4.     
  5. class ClassMethod(object):    
  6.     def __init__(self, function):    
  7.         print("ClassMethod: __init__() called")    
  8.         self.f = function    
  9.     def __get__(self, instance, owner = None):    
  10.         print("\t__get__() called")    
  11.         print("\tINFO: self = %s, instance =%s, owner = %s" % (self, instance, owner))    
  12.         def tmpfunc(x):    
  13.             print("I'm tmpfunc")    
  14.             return self.f(owner, x)    
  15.         return tmpfunc    
  16.     
  17. class Class2(object):    
  18.     method = ClassMethod(foo2)    
  19.     
  20. class Class21(Class2):    
  21.     pass    
  22. if __name__ == '__main__':    
  23.     ins = Class2()    
  24.     print("ins.method = %s, Class2.method = %s, Class21.method = %s" % (ins.method, Class2.method, Class21.method))    
  25.     ins.method('abc')    
  26.     Class2.method('xyz')    
  27.     Class21.method('asdf')    

输出结果是: 

ClassMethod: __init__() called  

    __get__() called  

    INFO: self = <__main__.ClassMethod object at 0xdeb250>, instance =<__main__.Class2 object at 0xdeb350>, owner = <class '__main__.Class2'>  

    __get__() called  

    INFO: self = <__main__.ClassMethod object at 0xdeb250>, instance =None, owner = <class '__main__.Class2'>  

    __get__() called  

    INFO: self = <__main__.ClassMethod object at 0xdeb250>, instance =None, owner = <class '__main__.Class21'>  

ins.method = <function tmpfunc at 0xdee050>, Class2.method = <function tmpfunc at 0xdee1e8>, Class21.method = <function tmpfunc at 0xdee270>  

    __get__() called  

    INFO: self = <__main__.ClassMethod object at 0xdeb250>, instance =<__main__.Class2 object at 0xdeb350>, owner = <class '__main__.Class2'>  

I'm tmpfunc  

foo2's class =  <class '__main__.Class2'>  

abc  

    __get__() called  

    INFO: self = <__main__.ClassMethod object at 0xdeb250>, instance =None, owner = <class '__main__.Class2'>  

I'm tmpfunc  

foo2's class =  <class '__main__.Class2'>  

xyz  

    __get__() called  

    INFO: self = <__main__.ClassMethod object at 0xdeb250>, instance =None, owner = <class '__main__.Class21'>  

I'm tmpfunc  

foo2's class =  <class '__main__.Class21'>  

asdf  

可以看出,classmethodstaticmethod的实现方法是大同小异。staticmethod比较简单,直接返回self.f变量就好了,而classmethod不行,需要把调用时候的class类型信息传给foo2函数,这个函数根据接收的class信息来作不同的工作。(不过我现在也没有想到可以用来做些什么) 

有个地方值得注意,可能同志们刚才也已经想到了,我一定必须要定义一个tempfunc,再返回它才能完成工作吗?可不可以不要 

[python]  view plain copy
  1. def tmpfunc(x):    
  2.             print("I'm tmpfunc")    
  3.             return self.f(owner, x)    
  4.         return tmpfunc    

而直接返回一个 

return self.f(owner, *args)  

刚试了一把,直接传args默认参数是不行的,因为__get__被调用的时候,还没有把参数传进来。只有return tmpfunc之后,Class2.method('xyz')的参数才挂在tmpfunc之上。 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值