上一页 1 ··· 15 16 17 18 19
摘要: zip函数接受任意多个可迭代对象作为参数,将对象中对应的元素打包成一个tuple,然后返回一个可迭代的zip对象. 这个可迭代对象可以使用循环的方式列出其元素 若多个可迭代对象的长度不一致,则所返回的列表与长度最短的可迭代对象相同. 转载于:https://www.cnblogs.com/renpi 阅读全文
posted @ 2019-02-27 10:07 胖白白 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 运行结果: <map object at 0x000001AD0A334908>['Lll', 'Lkk', 'Wxy'] 阅读全文
posted @ 2019-02-27 10:06 胖白白 阅读(28600) 评论(0) 推荐(0) 编辑
摘要: 示例: __repr__和__str__这两个方法都是用于显示的,__str__是面向用户的,而__repr__面向程序员。 打印操作会首先尝试__str__和str内置函数(print运行的内部等价形式),它通常应该返回一个友好的显示。 __repr__用于所有其他的环境中:用于交互模式下提示回应 阅读全文
posted @ 2019-02-26 09:26 胖白白 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 输出结果: format方式 输出结果: 阅读全文
posted @ 2019-02-22 21:56 胖白白 阅读(3507) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/LJFPHP/article/details/78818696 阅读全文
posted @ 2019-02-22 21:21 胖白白 阅读(4245) 评论(0) 推荐(0) 编辑
摘要: https://npm.taobao.org/mirrors/git-for-windows/ 国内的镜像 转载自:https://blog.csdn.net/ee230/article/details/79788491 阅读全文
posted @ 2019-02-22 20:39 胖白白 阅读(1563) 评论(0) 推荐(1) 编辑
上一页 1 ··· 15 16 17 18 19