随笔分类 - python
摘要:1.selenium安装: selenium相关参考官网:http://www.seleniumhq.org/ http://www.seleniumhq.org/download/ 支持的主流语言: 支持的主流浏览器: 谷歌Chrome浏览器、微软IE浏览器: 把相关浏览器驱动放到python根目
阅读全文
摘要:
阅读全文
摘要:>>> str1="welcom to China">>> str1[2:4]'lc'>>> str1[7]'t'>>> str1=str1[:8]+"中国"+str1[8:]>>> str1'welcom t中国o China'>>> #本质上是重新创建了一个字符串并贴上str1的标签,原来被st
阅读全文
摘要:Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit (Intel)] on win32Type "copyright", "credits" or "license()" for more info
阅读全文
摘要:>>> mix = [2,3.4,"abc",'中国',True,['ab',23]]>>> mix[2, 3.4, 'abc', '中国', True, ['ab', 23]]>>> nothing = []>>> nothing[]>>> len(mix)6>>> mix.append('飞狐外
阅读全文
摘要:>>> exp='welcom to python'>>> for i in exp: print(i,end=' ') w e l c o m t o p y t h o n >>> >>> weeks=['星期一','星期二','星期三','星期四','星期五','星期六','星期天']>>>
阅读全文
摘要:三元操作符
阅读全文