Python结束括号错误

时间:2018-02-03 17:15:37

标签: python parentheses kwargs

invalid syntax

我正在关注此tutorial,但当我到达** kwargs时,我收到此错误(上图)

def greet_me(**kwargs):
   if kwargs is not None:
    for key, value in kwargs.iteritems():
        print "%s == %s" %(key,value)

>>> greet_me(name="yasoob")
name == yasoob

0 个答案:

没有答案