摘要: print(zip(('a','b','c'),(1,2,3)))print(list(zip(('a','b','c'),(1,2,3))))#结果<zip object at 0x00EBB0F8>[('a', 1), ('b', 2), ('c', 3)] p={'name':'alex',' 阅读全文
posted @ 2018-08-19 19:34 漫语慢蜗牛 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 作用域:name='alex' def foo(): name='linhaifeng' def bar(): print(name)foo() def test(): passprint(test) def test1(): print('in the test1')def test(): pri 阅读全文
posted @ 2018-08-19 10:30 漫语慢蜗牛 阅读(90) 评论(0) 推荐(0) 编辑