随笔分类 -  BayaiM_Python

摘要:Python 学习 __2016-3-03 11:03:33 _1.0 __2016-3-03 11:03:33 _1.0 __2016-3-03 11:03:33 _1.0 查看Python版本 $ python -VPython 2.3.4注释$是shell的提示符。根据你的操作系统的设置,它可 阅读全文
posted @ 2018-08-07 15:08 上帝_BayaiM 阅读(125) 评论(0) 推荐(0)
摘要:Python_流程控制 2016年3月8日12:47:35_1.0 [root@localhost bayaim]# cat bai.py #!/usr/bin/pythondef fun(): return 0x= int(raw_input("please input x:"))y= int(r 阅读全文
posted @ 2018-08-07 15:07 上帝_BayaiM 阅读(136) 评论(0) 推荐(0)
摘要:Python_函数 ————————————————————————————————2016年3月14日09:21:41———————————————————————————————— #!/usr/bin/pythoni=5 print ii=i + 1 print is='''This is a 阅读全文
posted @ 2018-08-07 15:06 上帝_BayaiM 阅读(120) 评论(0) 推荐(0)
摘要:Python中元组,列表,字典的区别 Python中元组,列表,字典的区别 python中,有3种内建的数据结构:列表、元组和字典。1.列表 list是处理一组有序项目的数据结构,即你可以在一个列表中存储一个序列的项目。列表中的项目。列表中的项目应该包括在方括号中,这样python就知道你是在指明一 阅读全文
posted @ 2018-08-07 15:05 上帝_BayaiM 阅读(209) 评论(0) 推荐(0)