As can be seen from the figure below, AppiumBy is the imported selenium.webdriver.common.by package, and the inherited By
Appium.webdriver.common.appiumby package imported by MobileBy, inherited by AppiumBy
That is to say, using AppiumBy and MobileBy in the actual code is the same, but it is clearly stated in MobileBy that MobileBy is deprecated in version 2.1.0, and it is best to use AppiumBy
"""
deprecated:: 2.1.0
Please use 'from appium.webdriver.common.appiumby import AppiumBy' instead of 'MobileBy'.
"""