**(双星/星号)和*(星号/星号)对参数有什么作用?

问:

*args 和 **kwargs 是什么意思?

def foo(x, y, *args):
def bar(x, y, **kwargs):

答1:

huntsbot.com高效搞钱,一站式跟进超10+任务平台外包需求

*args 和 **kwargs 是一种常见的习惯用法,允许函数使用任意数量的参数,如 Python 文档中的 more on defining functions 部分所述。

*args 将为您提供所有函数参数 as a tuple:

def foo(*args):
    for a in args:
        print(a)        

foo(1)
# 1

foo(1,2,3)
# 1
# 2
# 3

**kwargs 将为您提供所有关键字参数,除了对应于作为字典的形式参数的那些。

def bar(**kwargs):
    for a in kwargs:
        print(a, kwargs[a])  

bar(name='one', age=27)
# name one
# age 27

这两个习语都可以与普通参数混合,以允许一组固定和一些可变参数:

def foo(kind, *args, **kwargs):
   pass

也可以反过来使用它:

def foo(a, b, c):
    print(a, b, c)

obj = {'b':10, 'c':'lee'}

foo(100,**obj)
# 100 10 lee

*l 习语的另一种用法是在调用函数时解压缩参数列表。

def foo(bar, lee):
    print(bar, lee)

l = [1,2]

foo(*l)
# 1 2

在 Python 3 中,可以在赋值 (Extended Iterable Unpacking) 的左侧使用 *l,尽管在此上下文中它给出了一个列表而不是一个元组:

first, *rest = [1,2,3,4]
first, *l, last = [1,2,3,4]

Python 3 还添加了新语义(请参阅 PEP 3102):

def func(arg1, arg2, arg3, *, kwarg1, kwarg2):
    pass

例如,以下适用于 python 3 但不适用于 python 2:

>>> x = [1, 2]
>>> [*x]
[1, 2]
>>> [*x, 3, 4]
[1, 2, 3, 4]

>>> x = {1:1, 2:2}
>>> x
{1: 1, 2: 2}
>>> {**x, 3:3, 4:4}
{1: 1, 2: 2, 3: 3, 4: 4}

此类函数仅接受 3 个位置参数,并且 * 之后的所有内容都只能作为关键字参数传递。

笔记:

在语义上用于关键字参数传递的 Python dict 是任意排序的。但是,在 Python 3.6 中,保证关键字参数会记住插入顺序。

“**kwargs 中元素的顺序现在对应于关键字参数传递给函数的顺序。” - Python 3.6 的新功能

事实上,CPython 3.6 中的所有 dicts 都会记住插入顺序作为实现细节,这在 Python 3.7 中成为标准。

答2:

一个优秀的自由职业者,应该有对需求敏感和精准需求捕获的能力,而huntsbot.com提供了这个机会

还值得注意的是,您也可以在调用函数时使用 * 和 **。这是一个快捷方式,允许您使用列表/元组或字典直接将多个参数传递给函数。例如,如果您具有以下功能:

def foo(x,y,z):
    print("x=" + str(x))
    print("y=" + str(y))
    print("z=" + str(z))

您可以执行以下操作:

>>> mylist = [1,2,3]
>>> foo(*mylist)
x=1
y=2
z=3

>>> mydict = {'x':1,'y':2,'z':3}
>>> foo(**mydict)
x=1
y=2
z=3

>>> mytuple = (1, 2, 3)
>>> foo(*mytuple)
x=1
y=2
z=3

注意:mydict 中的键的名称必须与函数 foo 的参数完全相同。否则会抛出 TypeError:

>>> mydict = {'x':1,'y':2,'z':3,'badnews':9}
>>> foo(**mydict)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: foo() got an unexpected keyword argument 'badnews'

打造属于自己的副业,开启自由职业之旅,从huntsbot.com开始!

答3:

huntsbot.com洞察每一个产品背后的需求与收益,从而捕获灵感

单个 * 表示可以有任意数量的额外位置参数。 foo() 可以像 foo(1,2,3,4,5) 一样被调用。在 foo() 的主体中,param2 是一个包含 2-5 的序列。

双 ** 表示可以有任意数量的额外命名参数。 bar() 可以像 bar(1, a=2, b=3) 一样被调用。在 bar() 的主体中 param2 是一个包含 {‘a’:2, ‘b’:3 } 的字典

使用以下代码:

def foo(param1, *param2):
    print(param1)
    print(param2)

def bar(param1, **param2):
    print(param1)
    print(param2)

foo(1,2,3,4,5)
bar(1,a=2,b=3)

输出是

1
(2, 3, 4, 5)
1
{'a': 2, 'b': 3}

答4:

huntsbot.com – 程序员副业首选,一站式外包任务、远程工作、创意产品分享订阅平台。

*(双星)和(星)对参数有什么作用?

它们允许定义函数以接受,并允许用户传递任意数量的参数、位置 (*) 和关键字 (**)。

定义函数

*args 允许任意数量的可选位置参数(参数),这些参数将分配给名为 args 的元组。

**kwargs 允许任意数量的可选关键字参数(参数),它们将位于名为 kwargs 的字典中。

您可以(并且应该)选择任何适当的名称,但如果意图使参数具有非特定语义,则 args 和 kwargs 是标准名称。

扩展,传递任意数量的参数

您还可以使用 *args 和 **kwargs 分别从列表(或任何可迭代)和字典(或任何映射)传入参数。

接收参数的函数不必知道它们正在被扩展。

例如,Python 2 的 xrange 没有明确地期望 *args,但因为它需要 3 个整数作为参数:

>>> x = xrange(3) # create our *args - an iterable of 3 integers
>>> xrange(*x)    # expand here
xrange(0, 2, 2)

作为另一个示例,我们可以在 str.format 中使用 dict 扩展:

>>> foo = 'FOO'
>>> bar = 'BAR'
>>> 'this is foo, {foo} and bar, {bar}'.format(**locals())
'this is foo, FOO and bar, BAR'

Python 3 中的新功能:使用仅关键字参数定义函数

您可以在 *args 之后添加 keyword only arguments - 例如,在这里,kwarg2 必须作为关键字参数给出 - 而不是位置:

def foo(arg, kwarg=None, *args, kwarg2=None, **kwargs): 
    return arg, kwarg, args, kwarg2, kwargs

用法:

>>> foo(1,2,3,4,5,kwarg2='kwarg2', bar='bar', baz='baz')
(1, 2, (3, 4, 5), 'kwarg2', {'bar': 'bar', 'baz': 'baz'})

此外,* 可以单独使用来表示后面只有关键字参数,而不允许无限的位置参数。

def foo(arg, kwarg=None, *, kwarg2=None, **kwargs): 
    return arg, kwarg, kwarg2, kwargs

在这里,kwarg2 再次必须是显式命名的关键字参数:

>>> foo(1,2,kwarg2='kwarg2', foo='foo', bar='bar')
(1, 2, 'kwarg2', {'foo': 'foo', 'bar': 'bar'})

而且我们不能再接受无限的位置参数,因为我们没有 args

>>> foo(1,2,3,4,5, kwarg2='kwarg2', foo='foo', bar='bar')
Traceback (most recent call last):
  File "", line 1, in 
TypeError: foo() takes from 1 to 2 positional arguments 
    but 5 positional arguments (and 1 keyword-only argument) were given

同样,更简单地说,这里我们要求 kwarg 按名称给出,而不是按位置给出:

def bar(*, kwarg=None): 
    return kwarg

在这个例子中,我们看到如果我们尝试在位置上传递 kwarg,我们会得到一个错误:

>>> bar('kwarg')
Traceback (most recent call last):
  File "", line 1, in 
TypeError: bar() takes 0 positional arguments but 1 was given

我们必须将 kwarg 参数作为关键字参数显式传递。

>>> bar(kwarg='kwarg')
'kwarg'

Python 2 兼容的演示

*args(通常表示“star-args”)和 kwargs(可以通过说“kwargs”来暗示星号,但用“double-star kwargs”明确表示)是 Python 使用 * 和 符号。这些特定的变量名不是必需的(例如,您可以使用 *foos 和 **bars),但偏离约定可能会激怒您的 Python 编码人员。

当我们不知道我们的函数将接收什么或我们可能传递多少参数时,我们通常会使用这些,有时即使单独命名每个变量也会变得非常混乱和冗余(但这种情况通常显式是比隐式更好)。

示例 1

以下函数描述了如何使用它们,并演示了行为。请注意,命名的 b 参数将由之前的第二个位置参数使用:

def foo(a, b=10, *args, **kwargs):
    '''
    this function takes required argument a, not required keyword argument b
    and any number of unknown positional arguments and keyword arguments after
    '''
    print('a is a required argument, and its value is {0}'.format(a))
    print('b not required, its default value is 10, actual value: {0}'.format(b))
    # we can inspect the unknown arguments we were passed:
    #  - args:
    print('args is of type {0} and length {1}'.format(type(args), len(args)))
    for arg in args:
        print('unknown arg: {0}'.format(arg))
    #  - kwargs:
    print('kwargs is of type {0} and length {1}'.format(type(kwargs),
                                                        len(kwargs)))
    for kw, arg in kwargs.items():
        print('unknown kwarg - kw: {0}, arg: {1}'.format(kw, arg))
    # But we don't have to know anything about them 
    # to pass them to other functions.
    print('Args or kwargs can be passed without knowing what they are.')
    # max can take two or more positional args: max(a, b, c...)
    print('e.g. max(a, b, *args) \n{0}'.format(
      max(a, b, *args))) 
    kweg = 'dict({0})'.format( # named args same as unknown kwargs
      ', '.join('{k}={v}'.format(k=k, v=v) 
                             for k, v in sorted(kwargs.items())))
    print('e.g. dict(**kwargs) (same as {kweg}) returns: \n{0}'.format(
      dict(**kwargs), kweg=kweg))

我们可以查看函数签名的在线帮助,使用 help(foo),它告诉我们

foo(a, b=10, *args, **kwargs)

让我们用 foo(1, 2, 3, 4, e=5, f=6, g=7) 调用这个函数

打印:

a is a required argument, and its value is 1
b not required, its default value is 10, actual value: 2
args is of type  and length 2
unknown arg: 3
unknown arg: 4
kwargs is of type  and length 3
unknown kwarg - kw: e, arg: 5
unknown kwarg - kw: g, arg: 7
unknown kwarg - kw: f, arg: 6
Args or kwargs can be passed without knowing what they are.
e.g. max(a, b, *args) 
4
e.g. dict(**kwargs) (same as dict(e=5, f=6, g=7)) returns: 
{'e': 5, 'g': 7, 'f': 6}

示例 2

我们也可以使用另一个函数来调用它,我们只需在其中提供 a:

def bar(a):
    b, c, d, e, f = 2, 3, 4, 5, 6
    # dumping every local variable into foo as a keyword argument 
    # by expanding the locals dict:
    foo(**locals()) 

bar(100) 打印:

a is a required argument, and its value is 100
b not required, its default value is 10, actual value: 2
args is of type  and length 0
kwargs is of type  and length 4
unknown kwarg - kw: c, arg: 3
unknown kwarg - kw: e, arg: 5
unknown kwarg - kw: d, arg: 4
unknown kwarg - kw: f, arg: 6
Args or kwargs can be passed without knowing what they are.
e.g. max(a, b, *args) 
100
e.g. dict(**kwargs) (same as dict(c=3, d=4, e=5, f=6)) returns: 
{'c': 3, 'e': 5, 'd': 4, 'f': 6}

示例 3:装饰器中的实际用法

好的,所以也许我们还没有看到该实用程序。因此,假设您在微分代码之前和/或之后有几个带有冗余代码的函数。以下命名函数只是用于说明目的的伪代码。

def foo(a, b, c, d=0, e=100):
    # imagine this is much more code than a simple function call
    preprocess() 
    differentiating_process_foo(a,b,c,d,e)
    # imagine this is much more code than a simple function call
    postprocess()

def bar(a, b, c=None, d=0, e=100, f=None):
    preprocess()
    differentiating_process_bar(a,b,c,d,e,f)
    postprocess()

def baz(a, b, c, d, e, f):
    ... and so on

我们也许可以用不同的方式处理这个问题,但我们当然可以使用装饰器提取冗余,因此我们下面的示例演示了 *args 和 **kwargs 如何非常有用:

def decorator(function):
    '''function to wrap other functions with a pre- and postprocess'''
    @functools.wraps(function) # applies module, name, and docstring to wrapper
    def wrapper(*args, **kwargs):
        # again, imagine this is complicated, but we only write it once!
        preprocess()
        function(*args, **kwargs)
        postprocess()
    return wrapper

现在每个包装函数都可以写得更简洁,因为我们已经排除了冗余:

@decorator
def foo(a, b, c, d=0, e=100):
    differentiating_process_foo(a,b,c,d,e)

@decorator
def bar(a, b, c=None, d=0, e=100, f=None):
    differentiating_process_bar(a,b,c,d,e,f)

@decorator
def baz(a, b, c=None, d=0, e=100, f=None, g=None):
    differentiating_process_baz(a,b,c,d,e,f, g)

@decorator
def quux(a, b, c=None, d=0, e=100, f=None, g=None, h=None):
    differentiating_process_quux(a,b,c,d,e,f,g,h)

通过分解出我们的代码(*args 和 **kwargs 允许我们这样做),我们减少了代码行数,提高了可读性和可维护性,并为我们的程序中的逻辑提供了唯一的规范位置。如果我们需要更改此结构的任何部分,我们有一个地方可以进行每次更改。

答5:

huntsbot.com – 程序员副业首选,一站式外包任务、远程工作、创意产品分享订阅平台。

让我们首先了解什么是位置参数和关键字参数。下面是一个带有位置参数的函数定义示例。

def test(a,b,c):
     print(a)
     print(b)
     print(c)

test(1,2,3)
#output:
1
2
3

所以这是一个带有位置参数的函数定义。您也可以使用关键字/命名参数调用它:

def test(a,b,c):
     print(a)
     print(b)
     print(c)

test(a=1,b=2,c=3)
#output:
1
2
3

现在让我们研究一个带有关键字参数的函数定义示例:

def test(a=0,b=0,c=0):
     print(a)
     print(b)
     print(c)
     print('-------------------------')

test(a=1,b=2,c=3)
#output :
1
2
3
-------------------------

您也可以使用位置参数调用此函数:

def test(a=0,b=0,c=0):
    print(a)
    print(b)
    print(c)
    print('-------------------------')

test(1,2,3)
# output :
1
2
3
---------------------------------

所以我们现在知道了带有位置参数和关键字参数的函数定义。

现在让我们研究一下’*‘运算符和’**'运算符。

请注意,这些运算符可用于 2 个领域:

a) 函数调用

b) 功能定义

在函数调用中使用“*”运算符和“**”运算符。

让我们直接看一个例子,然后讨论它。

def sum(a,b):  #receive args from function calls as sum(1,2) or sum(a=1,b=2)
    print(a+b)

my_tuple = (1,2)
my_list = [1,2]
my_dict = {'a':1,'b':2}

# Let us unpack data structure of list or tuple or dict into arguments with help of '*' operator
sum(*my_tuple)   # becomes same as sum(1,2) after unpacking my_tuple with '*'
sum(*my_list)    # becomes same as sum(1,2) after unpacking my_list with  '*'
sum(**my_dict)   # becomes same as sum(a=1,b=2) after unpacking by '**' 

# output is 3 in all three calls to sum function.

所以记住

当在函数调用中使用 ‘*’ 或 ‘**’ 运算符时 -

‘*’ 运算符将数据结构(例如列表或元组)解压缩为函数定义所需的参数。

‘**’ 运算符将字典解包为函数定义所需的参数。

现在让我们研究一下函数定义中’*'运算符的使用。例子:

def sum(*args): #pack the received positional args into data structure of tuple. after applying '*' - def sum((1,2,3,4))
    sum = 0
    for a in args:
        sum+=a
    print(sum)

sum(1,2,3,4)  #positional args sent to function sum
#output:
10

在函数定义中,‘*’ 运算符将接收到的参数打包到一个元组中。

现在让我们看一个在函数定义中使用’**'的例子:

def sum(**args): #pack keyword args into datastructure of dict after applying '**' - def sum({a:1,b:2,c:3,d:4})
    sum=0
    for k,v in args.items():
        sum+=v
    print(sum)

sum(a=1,b=2,c=3,d=4) #positional args sent to function sum

在函数定义中,‘**’ 运算符将接收到的参数打包到字典中。

所以请记住:

在函数调用中,‘*’ 将元组或列表的数据结构解包为函数定义接收的位置或关键字参数。

在函数调用中,‘**’ 将字典的数据结构解包为位置或关键字参数,以由函数定义接收。

在函数定义中,‘*’ 将位置参数打包到一个元组中。

在函数定义中,‘**’ 将关键字参数打包到字典中。

答6:

huntsbot.com聚合了超过10+全球外包任务平台的外包需求,寻找外包任务与机会变的简单与高效。

该表便于在函数 construction 和函数 call 中使用 * 和 **:

            In function construction         In function call
=======================================================================
          |  def f(*args):                 |  def f(a, b):
*args     |      for arg in args:          |      return a + b
          |          print(arg)            |  args = (1, 2)
          |  f(1, 2)                       |  f(*args)
----------|--------------------------------|---------------------------
          |  def f(a, b):                  |  def f(a, b):
**kwargs  |      return a + b              |      return a + b
          |  def g(**kwargs):              |  kwargs = dict(a=1, b=2)
          |      return f(**kwargs)        |  f(**kwargs)
          |  g(a=1, b=2)                   |
-----------------------------------------------------------------------

这实际上只是总结了 Lorin Hochstein 的answer,但我觉得它很有帮助。

相关:star/splat 运算符的用途已在 Python 3 中为 expanded

显然,“splat”是星号 * 的行话。 catb.org/jargon/html/S/splat.html“星号 (*) 字符 (ASCII 0101010) 在许多地方(DEC、IBM 等)使用的名称。这可能源于许多早期行式打印机上星号的‘压扁错误’外观。”

答7:

HuntsBot周刊–不定时分享成功产品案例,学习他们如何成功建立自己的副业–huntsbot.com

  • 和 ** 在函数参数列表中有特殊用途。 * 表示参数是一个列表,而 ** 表示参数是一个字典。这允许函数采用任意数量的参数

答8:

huntsbot.com – 高效赚钱,自由工作

对于那些通过例子学习的人!

  • 的目的是让您能够定义一个函数,该函数可以接受以列表形式提供的任意数量的参数(例如 f(*myList) )。 ** 的目的是让您能够通过提供字典来提供函数的参数(例如 f(**{‘x’ : 1, ‘y’ : 2}) )。

让我们通过定义一个函数来展示这一点,该函数接受两个普通变量 x、y,并且可以接受更多参数作为 myArgs,并且可以接受更多参数作为 myKW。稍后,我们将展示如何使用 myArgDict 馈送 y。

def f(x, y, *myArgs, **myKW):
    print("# x      = {}".format(x))
    print("# y      = {}".format(y))
    print("# myArgs = {}".format(myArgs))
    print("# myKW   = {}".format(myKW))
    print("# ----------------------------------------------------------------------")

# Define a list for demonstration purposes
myList    = ["Left", "Right", "Up", "Down"]
# Define a dictionary for demonstration purposes
myDict    = {"Wubba": "lubba", "Dub": "dub"}
# Define a dictionary to feed y
myArgDict = {'y': "Why?", 'y0': "Why not?", "q": "Here is a cue!"}

# The 1st elem of myList feeds y
f("myEx", *myList, **myDict)
# x      = myEx
# y      = Left
# myArgs = ('Right', 'Up', 'Down')
# myKW   = {'Wubba': 'lubba', 'Dub': 'dub'}
# ----------------------------------------------------------------------

# y is matched and fed first
# The rest of myArgDict becomes additional arguments feeding myKW
f("myEx", **myArgDict)
# x      = myEx
# y      = Why?
# myArgs = ()
# myKW   = {'y0': 'Why not?', 'q': 'Here is a cue!'}
# ----------------------------------------------------------------------

# The rest of myArgDict becomes additional arguments feeding myArgs
f("myEx", *myArgDict)
# x      = myEx
# y      = y
# myArgs = ('y0', 'q')
# myKW   = {}
# ----------------------------------------------------------------------

# Feed extra arguments manually and append even more from my list
f("myEx", 4, 42, 420, *myList, *myDict, **myDict)
# x      = myEx
# y      = 4
# myArgs = (42, 420, 'Left', 'Right', 'Up', 'Down', 'Wubba', 'Dub')
# myKW   = {'Wubba': 'lubba', 'Dub': 'dub'}
# ----------------------------------------------------------------------

# Without the stars, the entire provided list and dict become x, and y:
f(myList, myDict)
# x      = ['Left', 'Right', 'Up', 'Down']
# y      = {'Wubba': 'lubba', 'Dub': 'dub'}
# myArgs = ()
# myKW   = {}
# ----------------------------------------------------------------------

注意事项

** 专供字典使用。非可选参数赋值首先发生。您不能两次使用非可选参数。如果适用,** 必须始终在 * 之后。

答9:

huntsbot.com – 高效赚钱,自由工作

TL;博士

以下是 Python 编程中 * 和 ** 的 6 个不同用例:

使用 *args 接受任意数量的位置参数: def foo(*args): pass,这里 foo 接受任意数量的位置参数,即以下调用是有效的 foo(1), foo(1, ‘bar’) 到使用 **kwargs 接受任意数量的关键字参数: def foo(**kwargs): pass,这里 ‘foo’ 接受任意数量的关键字参数,即以下调用是有效的 foo(name=‘Tom’), foo( name=‘Tom’, age=33) 使用 *args, **kwargs 接受任意数量的位置和关键字参数: def foo(*args, **kwargs): 通过,这里 foo 接受任意数量的位置和关键字参数, 即以下调用是有效的 foo(1,name=‘Tom’), foo(1, ‘bar’, name=‘Tom’, age=33) 使用 * 强制仅使用关键字参数: def foo(pos1, pos2, *, kwarg1): pass,这里 * 表示 foo 只接受 pos2 之后的关键字参数,因此 foo(1, 2, 3) 会引发 TypeError 但 foo(1, 2, kwarg1=3) 是可以的。使用 *_ 表示对更多位置参数不再感兴趣(注意:这只是一个约定): def foo(bar, baz, _): pass 意味着(按照约定) foo 在其工作和会忽略别人。使用 *_ 表示对更多关键字参数不再感兴趣(注意:这只是一个约定): def foo(bar, baz, **_): pass 表示(按照约定) foo 仅使用 bar 和 baz 参数它的工作,并会忽略其他人。

奖励:从 python 3.8 开始,可以在函数定义中使用 / 来强制执行仅位置参数。在以下示例中,参数 a 和 b 是positional-only,而 c 或 d 可以是位置或关键字,而 e 或 f 必须是关键字:

def f(a, b, /, c, d, *, e, f):
    pass

使用 / 的一个原因是它允许您更改函数中参数的名称,而不必在调用函数的任何地方进行更新(您可以确定函数的调用者没有使用这些名称提供参数的参数,因为它没有被使用)。

答10:

huntsbot.com精选全球7大洲远程工作机会,涵盖各领域,帮助想要远程工作的数字游民们能更精准、更高效的找到对方。

来自 Python 文档:

如果位置参数的数量多于形参槽的数量,则会引发 TypeError 异常,除非存在使用语法“*identifier”的形参;在这种情况下,该形式参数接收一个包含多余位置参数的元组(如果没有多余的位置参数,则接收一个空元组)。如果任何关键字参数不对应于形式参数名称,则会引发 TypeError 异常,除非存在使用语法“**identifier”的形式参数;在这种情况下,该形式参数接收一个包含多余关键字参数的字典(使用关键字作为键,参数值作为对应值),或者如果没有多余的关键字参数,则接收一个(新的)空字典。

答11:

HuntsBot周刊–不定时分享成功产品案例,学习他们如何成功建立自己的副业–huntsbot.com

  • 表示以元组形式接收变量参数

** 表示接收变量参数作为字典

使用如下:

  1. 单人 *
def foo(*args):
    for arg in args:
        print(arg)

foo("two", 3)

输出:

two
3

  1. 现在**
def bar(**kwargs):
    for key in kwargs:
        print(key, kwargs[key])

bar(dic1="two", dic2=3)

输出:

dic1 two
dic2 3

原文链接:https://www.huntsbot.com/qa/OdeY/what-does-double-star-asterisk-and-star-asterisk-do-for-parameters?lang=zh_CN&from=csdn

huntsbot.com提供全网独家一站式外包任务、远程工作、创意产品分享与订阅服务!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值