标签:for test global use glob ems item print dmi
解包:
d = {"username":"admin","password":"123456"}
print(d.items())
# [(‘username‘, ‘admin‘), (‘password‘, ‘123456‘)]
for k,v in d.items():
print(k,v)
递归
#函数自己调用自己,就是递归
count = 0
def test():
global count
count+=1
print("5.1快乐",count)
test()
test()
标签:for test global use glob ems item print dmi
原文地址:https://www.cnblogs.com/dengjinjiao/p/14725250.html