
Python3.6
EIT王子
C/C /C#
展开
-
#Python3.6 第一个程序
#Python 第一个程序print("hello word")这是一个N多语言的入门程序。程序简单,确也有得一说。Python 3之后的版本与之前的有点不同了。Print输出必须是要加上括号。否则就会报错。python -V #这个命令可以查看版本 *注意是大写的V啊C:\Users\eit520>python -VPython 3.6.2原创 2017-09-11 10:17:44 · 849 阅读 · 0 评论 -
Python3.6 基础知识
1、标识符 第一个字符必须是字母表中字母或下划线'_'。 标识符的其他的部分有字母、数字和下划线组成。 标识符对大小写敏感。*在Python 3中,非-ASCII 标识符也是允许的了。2、Python保留字 保留字即关键字,我们不能把它们用作任何标识符名称。 Python的标准库提供了一个keyword module,可以输出当前版本的所有关键字: >>原创 2017-09-11 11:32:05 · 1235 阅读 · 0 评论 -
Python3.6 字符串的基本使用
1、基本操作 字符串就是一字符组成的序列,所以序列的标准操作都支持(除修改) >>>str='helloworld' 索引 >>>str[0] 'h' 分片 >>>str[0:5] 'hello' 相加(连接) >>>str1='python' >>>str+str1 'helloworldpython原创 2018-01-06 23:10:54 · 1133 阅读 · 0 评论 -
Python selenium 测试之安装WebDriver
一、安装 Selenium用密令查看是否有安装 pip show selenium若没有安装过,用以下命令安装pip install selenium二、安装WebDriverpython Selenium 有些介绍 https://pypi.org/project/selenium/Chrome: https://sites.google.com/a/c...原创 2019-03-24 12:38:42 · 3121 阅读 · 0 评论