上一页 1 ··· 5 6 7 8 9 10 下一页

2017年12月28日

Python_11字典

摘要: 1、字典的定义 dic={'k1':123,'k2':234,'k3':456} dic=dict(k1=123,k2=234,k3=345) dic=dict('k1':123,'k2':234,'k3':345) 不可取 li=[123,456,789] dic=dict(enumerate(l 阅读全文

posted @ 2017-12-28 12:47 JuGooLar 阅读(99) 评论(0) 推荐(0) 编辑

2017年12月26日

Python10_元组tuple

摘要: 1、元组的定义创建和转换 t=(1,2,3) t=tuple(1,2,3) t=tuple("111112222223333333333") t=tuple((11,22,33)) 转换:t=tuple() 可以是字符串、列表、字典 2、方法 countindex 3、嵌套(元素不可修改) t=(1 阅读全文

posted @ 2017-12-26 07:51 JuGooLar 阅读(123) 评论(0) 推荐(0) 编辑

2017年12月25日

Python9_列表list

摘要: 1、存放一个集合时,用到了列表 列表是可变的元素的集合 lis=[11,22,33,44] lis=list([11,22,33,44]) lis=list() 字符串转换为列表 s1="11" s2="22" s3="33" lis=list(s1) 内部for循环,将循环的每一个元素当做列表的元 阅读全文

posted @ 2017-12-25 13:19 JuGooLar 阅读(139) 评论(0) 推荐(0) 编辑

2017年12月23日

Python_8str类型

摘要: python中字符串类型是str定义: 两种创建方式 s1="qqqqq" s1=str('qqqq') str数据类型的encoding是编码的定义 str的功能有很多 两端去除空格 strip 以什么开头 startwith 找到字符串匹配 find() 将字符串中的某个字序列替换为指定的值re 阅读全文

posted @ 2017-12-23 11:20 JuGooLar 阅读(126) 评论(0) 推荐(0) 编辑

ssss

摘要: root/1q2w3EM. 阅读全文

posted @ 2017-12-23 10:59 JuGooLar 阅读(112) 评论(0) 推荐(0) 编辑

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) 编辑

2017年12月15日

Linux安装Oracle时,在图形界面显示出来之后,界面乱码

摘要: linux安装Oracle时 oracle : expor DISPLAY=192.168.1.1:0.0 oracle: ./runInstaller 显示界面是乱码,全是方框 解决措施: 1、关闭界面 2、输入以下命令 oracle : expor DISPLAY=192.168.1.1:0.0 阅读全文

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

上一页 1 ··· 5 6 7 8 9 10 下一页

导航