from appium import webdriver

desp = {
'automationName': 'appium', 'platformName': 'Android', 'platformVersion': '6.0',
'deviceName': '192.168.56.102:5555',
'appActivity': 'xxxx',
'appPackage': 'xxx'
}

driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desp)


↙↙↙阅读原文可查看相关链接,并与作者交流