udId = sys.argv[1:][1]
如:
# -*- coding: utf-8 -*-?
??
import os,sys,json
udId = sys.argv[1:][1]
text1 = sys.argv[1:][2]
如:
# -*- coding: utf-8 -*-?
??
import os,sys,json
text1 = sys.argv[1:][2]
# -*- coding: utf-8 -*-?
??
import os,sys,json
udId = sys.argv[1:][1]
text1 = sys.argv[1:][2]
def run_command(command):
? ? # command = f"""adb -s {udId} shell settings put system screen_brightness 0"""
? ? print(f"command={command}")
? ? os.system(command)
??
def run_test(udId):
? ? run_command(f"""adb -s {udId} shell svc wifi enable""")
? ? ? ? ??
print(f"udId={udId},text={text1},type={type(text1)}")
print("="*30)
run_test(udId)
import os,sys,json,time
udId = sys.argv[1:][1]
text1 = sys.argv[1:][2]
command=f"""adb -s {udId} shell input swipe 165 700 165 100"""
print(f"command={command}")
os.system(command)
time.sleep(1)