摘要: 一、Pycharm 是什么? PyCharm是一种PythonIDE,其带有一整套可以帮助用户在使用Python语言开发时提高其效率的工具。 二、pycharm 的安装 1.下载 : 地址http://www.jetbrains.com/pycharm/ 2. 安装: 点击下载的安装包,进行安装,一 阅读全文
posted @ 2018-11-19 10:19 章十慕珊· 阅读(1310) 评论(0) 推荐(0) 编辑
摘要: enumerate()说明 enumerate()是python的内置函数 enumerate在字典上是枚举、列举的意思 对于一个可迭代的(iterable)/可遍历的对象(如列表、字符串),enumerate将其组成一个索引序列,利用它可以同时获得索引和值 enumerate多用于在for循环中得 阅读全文
posted @ 2018-11-09 15:50 章十慕珊· 阅读(153) 评论(1) 推荐(0) 编辑
摘要: 1 循环篇: 2 3 以%形式 4 5 #输入用户基本信息,然后再输出来 6 7 name = input("Name:") 8 age = int(input("Age:")) #int转换为数字类型,不然出错 年龄为整数啊 9 print(type(age)#tpye一下看看age变量的数据类型 10 job = input("Job:") 11 money = in... 阅读全文
posted @ 2018-10-25 12:13 章十慕珊· 阅读(136) 评论(1) 推荐(0) 编辑