def test(*, a, b):
print("%s, %s" % (a, b))
# test(1, 2)
test(a=1, b=2)
函数中强制关键字传参
猜你喜欢
转载自www.cnblogs.com/chenliang0309/p/10390463.html
今日推荐
周排行