mysql> select @id:=stid from c where stid='1';
+-----------+
| @id:=stid |
+-----------+
| 1 |
+-----------+
1 row in set (0.04 sec)
----------------------------------------------
mysql> delete from s where id=@id;
Query OK, 1 row affected (0.08 sec)
mysql> select * from s;
...
#-*- coding:UTF-8 -*-
'''
Created on 2016-4-12
@author: poptest
'''
from xml.dom import minidom
class ReadXMLDriver():
def readXmlData(self,filename,elementfirstnode,num,elementsecondnode):
#找xml的路径
dom = minidom.parse('../ShopDateModel/'+filename)
...
-*-
__author__ = 'poptest'
import time
from selenium import webdriver
#打开火狐浏览器
dr = webdriver.Firefox()
#窗口最大化
dr.maximize_window()
#输入网址
dr.get("http://192.168.114.130/TinyShop/index.php")
time.sleep(2)
dr.quit()