def my_sum(my_integers):
    result = 0
    for x in my_integers:
        result += x
    return result
 
list_of_integers = [1, 2, 3]
print(my_sum(list_of_integers))
def concatenate(**kwargs):
    result = ""
    # Iterating over the Python kwargs dictionary
    for arg in kwargs.values():
        result += arg
    return result
 
print(concatenate(a="Real", b="Python", c="Is", d="Great", e="!"))


def get(kwargs):
	kwargs = kwargs.get('key')
	print(kwargs)
print(get('key':'ok','key2':'false'))


Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐