会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
aofei
博客园
首页
新随笔
联系
订阅
管理
2016年8月23日
python 小记 整数与小数id
摘要: 上图,id A =B id 1.0 c != d 以后少用 带小数后位的数字。调用内存地址不一样
阅读全文
posted @ 2016-08-23 18:52 小飞01
阅读(231)
评论(0)
推荐(0)
2016年8月18日
python入门 第二天笔记
摘要: 程序主文件标志if __name__=="__main__": 在程序执行python 1.py 时候 程序1.py __name__ 为 main调用其他文件是,__name__ 为程序自己名字等于__name__ 一切事物都是对象,对象是有类创建的 int 内部功能a = 95b = 10c =
阅读全文
posted @ 2016-08-18 21:00 小飞01
阅读(245)
评论(0)
推荐(0)
2016年8月16日
python 元组问题解决
摘要: (1, 2, {'k1': 5}) 为什么元素'b2' = 5 应该是元素'k1' = 5 求解 a[2]['k1']=b2
阅读全文
posted @ 2016-08-16 15:07 小飞01
阅读(145)
评论(0)
推荐(0)
python入门第一天作业。讲师写的代码。
摘要: 作业:编写登陆接口 输入用户名密码 认证成功后显示欢迎信息 输错三次后锁定
阅读全文
posted @ 2016-08-16 11:44 小飞01
阅读(690)
评论(0)
推荐(0)
2016年8月15日
python学习笔记enumerate()与range(len)运用及赋值小计
摘要: a (0)b (1)c (2) a 0b 1c 2 wartyouname:ssdfs (0)s (1)d (2)f (3) 输出: We are the kingfei who say NI NI NI NIWe are the kingfei who say NI NI NI NI
阅读全文
posted @ 2016-08-15 17:05 小飞01
阅读(1722)
评论(0)
推荐(0)
python 循环while和for in
摘要: #!/uer/bin/env python # _*_ coding: utf-8 _*_ lucknumber = 5 b = 0 while b lucknumber: print ('youaerbiger') elif a == lucknumber: print ('youare righet') break ...
阅读全文
posted @ 2016-08-15 16:18 小飞01
阅读(269)
评论(0)
推荐(0)
python入门笔记第一天
摘要: 查询acsii命令 ord(‘A’) 导入模块python执行系统命令显示文件。查找文件方法1import osa = os.popen('目标').read()a 解释output = os.popen('cat /proc/cpuinfo')print output.read() 方法2 imp
阅读全文
posted @ 2016-08-15 16:05 小飞01
阅读(183)
评论(0)
推荐(0)
公告