随笔分类 - python
python技术系列实战
摘要:1.dict1=dict((['x',1],['y',2])):dict()创建字典 2.dict1={}.fromkeys(('x','y'),-1):fromkeys()创建一个默认字典,字典中元素具有相同的值 3.dict1.keys():获取字典的键值列表 4.dict1.has_key('
阅读全文
posted @ 2019-06-16 11:03
左手编程右手诗
摘要:#-*-coding:utf-8-*- #1、字典 dict = {'name': 'Zara', 'age': 7, 'class': 'First'} #字典转为字符串,返回:<type 'str'> {'age': 7, 'name': 'Zara', 'class': 'First'} pr
阅读全文
posted @ 2019-06-16 10:43
左手编程右手诗
摘要:一、python关键字 1. and :表示逻辑判断 【与】 a = '1' b = 1 if a and b: print('Hello Python') 2.as :单独没有实际意思,常与with组合使用,with...as 例如: with open('./test.txt', 'w') as
阅读全文
posted @ 2019-06-15 22:46
左手编程右手诗
摘要:一、Python全栈图谱 2、Python语言高级 Python 全栈工程师前端 Python全栈工程师后端 Python Linux运维自动化开发 Python KaliLinux信息安全开发和使用 Python数据分析阶段 Python人工智能阶段 Python 树莓派物联网阶段 Python项
阅读全文
posted @ 2019-06-03 14:08
左手编程右手诗
摘要:说明:以下文章为转载,有英文原文和中文整理翻译,对原作者和译者的工作表示极大感谢!!! 英文原文:https://github.com/vinta/awesome-python 中文译文:https://github.com/jobbole/awesome-python-cn 及:https://w
阅读全文

浙公网安备 33010602011771号