2018年5月30日

控制流程之while循环

摘要: while语法,while循环又称为条件循环 while 条件: code1 code2 code3 .... user_db='egon' pwd_db='123' while True: inp_user=input('username>>: ') inp_pwd=input('password 阅读全文

posted @ 2018-05-30 18:16 阿乐的博客园 阅读(165) 评论(0) 推荐(0) 编辑

控制流程之if判断

摘要: 语法1 if 条件: 代码1 代码2 代码3 ... cls='human' sex='female' age=18 if cls == 'human' and sex == 'female' and age > 16 and age < 22: print('开始表白') print('end.. 阅读全文

posted @ 2018-05-30 18:15 阿乐的博客园 阅读(103) 评论(0) 推荐(0) 编辑

2018年5月24日

python的入门到一般般牛逼

摘要: 什么是python? python是一门编程语言 什么是编程语言? 语言就是一种东西和另一种东西的沟通的介质,比如狗和狗交流用狗语,中国人交流用汉语,美国人交流用英语。 所以编程语言就是程序员和计算机的沟通介质 什么是编程? 程序员基于某种语言的语法格式将自己想让计算机做的事写成文件,所以编程的结果 阅读全文

posted @ 2018-05-24 18:16 阿乐的博客园 阅读(401) 评论(0) 推荐(0) 编辑

导航