12 2017 档案

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 阅读(108) 评论(0) 推荐(0)

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 阅读(128) 评论(0) 推荐(0)

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 阅读(157) 评论(0) 推荐(0)

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

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

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

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

Python7-查看对象类或对象所具备的功能
摘要:1、print (type(duixiang)) 2、print (dir(duixiang)) 3、print (help(type(duixiang))) 阅读全文

posted @ 2017-12-17 17:29 JuGooLar 阅读(123) 评论(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 阅读(132) 评论(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 阅读(170) 评论(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 阅读(137) 评论(0) 推荐(0)

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 阅读(734) 评论(0) 推荐(0)

RH 5.11 64 Oracle 10G 安装时显示不了 图形界面
摘要:如果提示类似原因: /tmp/OraInstall2017-12-15_0234-35PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occu 阅读全文

posted @ 2017-12-15 15:00 JuGooLar 阅读(132) 评论(0) 推荐(0)

Python-3if..else
摘要:1、if else if 条件: 命令 要有缩进,缩至与条件对齐,四个空格 elseif: 命令 也要有缩进,要与上边的缩进对齐 esleif: 命令 也要有缩进,要与上边的缩进对齐 esle: 命令 2 #raw_input 是2.7#input 是3+ 阅读全文

posted @ 2017-12-14 21:20 JuGooLar 阅读(124) 评论(0) 推荐(0)

Python-2定义变量
摘要:1、字符串变量的定义 字符串变量的赋值用 单引号:' ' 或双引号 " " 包裹。双引号包裹本身含有单引号的字符串;单引号包裹本身含有双引号的字符串;既有单引号又有双引号的字符串,用转义字符标出。 zifuchuan='zichuchuan' 显示 zifuchuan zifuchuan="zifu 阅读全文

posted @ 2017-12-14 14:08 JuGooLar 阅读(847) 评论(0) 推荐(0)

Python-1写Python程序的头
摘要:1、创建Python文件 xxx.py 注:不要有中文路径 2、写代码 头代码 #!/usr/bin/env python #-*- coding:utf-8 -*- 3、执行代码 a.打开终端 b.Python .py文件路径 阅读全文

posted @ 2017-12-14 08:36 JuGooLar 阅读(215) 评论(0) 推荐(0)

导航