python-文件操作
摘要:虫师博客链接 http://www.cnblogs.com/fnng/archive/2013/05/22/3091982.html
阅读全文
posted @
2016-03-31 10:39
菜菜菜鸟的it路
阅读(134)
推荐(0) 编辑
robot framework -记录关键字
摘要:1.set value if (当条件满足时,进行变量赋值) 2.focus (将焦点定在制定的元素) 3.win close +title(关闭制定title) 4.get list items id=... or name =... 例:如下将会返回列表中所有值 @{list} get list
阅读全文
posted @
2016-03-28 10:14
菜菜菜鸟的it路
阅读(360)
推荐(0) 编辑
python 第三章 字符串-例1
摘要:1.字段宽度和精度 >>>'%.*s' % (10,'Gruido') ' Guido' >>>'%.-*s' % (10,'Gruido') 'Guido ' 详见例子 width = input('Please enter width:')price_width=10item_width=wid
阅读全文
posted @
2016-03-28 09:56
菜菜菜鸟的it路
阅读(168)
推荐(0) 编辑
第一章,重点总结
摘要:1.长整数:>>>100000000000L,否则报错 2.获取用户输入:input(“input your string:”),raw_input(“input your string:”) 3.函数:绝对值:>>>abs(-10);输出10,四舍五入:>>>round(1.0/2.0);输出1.
阅读全文
posted @
2016-03-24 11:31
菜菜菜鸟的it路
阅读(131)
推荐(0) 编辑
解决UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe5 in position 108: ordinal not in range(128
摘要:今天做网页到了测试和数据库交互的地方,其中HTML和数据库都是设置成utf-8格式编码,插入到数据库中是正确的,但是当读取出来的时候就会出错,原因就是python的str默认是ascii编码,和unicode编码冲突,就会报这个标题错误。那么该怎样解决呢? 通过搜集网上的资料,自己多次尝试,问题算是
阅读全文
posted @
2016-03-21 16:49
菜菜菜鸟的it路
阅读(197)
推荐(0) 编辑
python smtplib.SMTPDataError: (554
摘要:只赋值了msg['Subject'], 没有赋值msg['From'], msg['To'],导致出现554情况,更改了后就好了。 注意MIMEText初始化的时候,中文的第二个参数要用'plain',我用'text',中文就显示不出来。 msg['From'] 中人名为Tim,会和下面对应起来。
阅读全文
posted @
2016-03-18 17:10
菜菜菜鸟的it路
阅读(1022)
推荐(0) 编辑