def gbpdd(sjh): aaka="adb -s {0} shell am force-stop com.xunmeng.pinduoduo".format(sjh) aakb="adb -s {0} shell pm clear com.xunmeng.pinduoduo".format(sjh) process = subprocess.Popen(aaka,shell=True) time.sleep(2) process = subprocess.Popen(aakb,shell=True)