摘要: 上图,id A =B id 1.0 c != d 以后少用 带小数后位的数字。调用内存地址不一样 阅读全文
posted @ 2016-08-23 18:52 小飞01 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 程序主文件标志if __name__=="__main__": 在程序执行python 1.py 时候 程序1.py __name__ 为 main调用其他文件是,__name__ 为程序自己名字等于__name__ 一切事物都是对象,对象是有类创建的 int 内部功能a = 95b = 10c = 阅读全文
posted @ 2016-08-18 21:00 小飞01 阅读(238) 评论(0) 推荐(0) 编辑
摘要: (1, 2, {'k1': 5}) 为什么元素'b2' = 5 应该是元素'k1' = 5 求解 a[2]['k1']=b2 阅读全文
posted @ 2016-08-16 15:07 小飞01 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 作业:编写登陆接口 输入用户名密码 认证成功后显示欢迎信息 输错三次后锁定 阅读全文
posted @ 2016-08-16 11:44 小飞01 阅读(683) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(1702) 评论(0) 推荐(0) 编辑
摘要: #!/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 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 查询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 阅读(170) 评论(0) 推荐(0) 编辑