2017年12月17日

Python7-查看对象类或对象所具备的功能

摘要: 1、print (type(duixiang)) 2、print (dir(duixiang)) 3、print (help(type(duixiang))) 阅读全文

posted @ 2017-12-17 17:29 JuGooLar 阅读(115) 评论(0) 推荐(0) 编辑

Python6-基本的数据类型

摘要: 1、数字 整数 int: 求和 a+b 等同于 a.__add__(b) 两个下划线 a.bit_length() 求a用二进制表示的最小位数 有些数据类型的功能函数的参数可为空,有些不可为空 2、字符串 str str.capitalize表示将str字符串的首字母大写 str.cneter(ch 阅读全文

posted @ 2017-12-17 17:03 JuGooLar 阅读(125) 评论(0) 推荐(0) 编辑

Python-5PyCharm配置

摘要: 1、file-settings-editor-code Style-file and code template-python script(点击哟)-OK 2、版本的切换:file-settings-project interpreter-选择版本 Python 2.7 Python 3.6 阅读全文

posted @ 2017-12-17 15:43 JuGooLar 阅读(152) 评论(0) 推荐(0) 编辑

Python-4运算符

摘要: 算术运算符 + - * / a**b a的b次方 a//b a除以b取整 a%b a对b取余 Python 2....导入 模块之后 a/b可以有小数结果显示 a+=b 表示a=a+b 快捷键: 选中要注释的内容 用快捷键 ctrl + / 即可注释掉选中内容 逻辑运算符 in / not in s 阅读全文

posted @ 2017-12-17 14:52 JuGooLar 阅读(132) 评论(0) 推荐(0) 编辑

导航