![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
mengmeng0510
这个作者很懒,什么都没留下…
展开
-
python学习list和tuple用法
最近自己在学习python,把每天的学习做一些记录和分享吧 #!/usr/bin/env python3 -- coding: utf-8 -- #--------------------------list相关用法--------------------------- classmates=[‘benliu’,‘yuan’,‘bo’,‘GM’] #print(classmates[0]) #pr...原创 2019-02-08 23:34:23 · 150 阅读 · 0 评论 -
学习python if条件语句的用法
#-------python if条件语句的用法------------ age_str=input(‘please input your age:’); age=int(age_str) #此处必须要用int()函数,因为input()返回的类型是str if age>=6: print(‘teenger’) elif age>=18: print(‘adult’) else : ...原创 2019-02-10 04:11:00 · 388 阅读 · 0 评论 -
学习python 循环语句用法
最近在学习廖雪峰老师的python教程,就把学习过程中写的py文件记录下来,与大家分享 #!/usr/bin/env python3 # -*- coding: utf-8 -*- #------------学习python for...in...用法----------------- classmates=['benliu','yuan','bo','GM'] for name in class...原创 2019-02-10 04:14:48 · 117 阅读 · 0 评论 -
学习python编程语言使用dict和set
最近在学习廖雪峰老师的python教程,现在把自己学习过程中写的py文件与大家分享。 #!/usr/bin/env python3 # -*- coding: utf-8 -*- #---------------学习dict用法----------------------- classmates={'benliu':100,'yuan':90,'bo':80,'GM':100} print(cla...原创 2019-02-10 04:19:16 · 204 阅读 · 0 评论 -
学习python中函数的使用分享
最近在学习廖雪峰老师的python教程,先将自己学习过程中写的py文件与大家分享 #!/usr/bin/env python3 # -*- coding: utf-8 -*- #--------学习python 函数的用法---------------- #在编程的过程中,我们借助函数来实现代码的抽象表达, #通过借助抽象,我们可以不关心底层代码的具体实现方式,而直接在更高的层次上思考问题 #在p...原创 2019-02-10 04:35:14 · 110 阅读 · 0 评论