ningruolily

导航

2014年3月19日 #

selenium+python+eclipse开发中遇到的问题

摘要: 1、中文编码问题报错提示:SyntaxError: Non-ASCII character '\xba' in file D:\autotest\PythonCase\src\selenium\test.py on line 10, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details解决方法:在脚本的第一行(必须是第一行)加入:# -*- coding: utf-8 -*-2、包名称问题报错提示: from selenium import webdriver Imp 阅读全文

posted @ 2014-03-19 11:41 ningruolily 阅读(344) 评论(0) 推荐(0) 编辑