本文是參考大神的解決方式,但是出處暫時(shí)找不到了
解決方法就是duration,直接傳入sleep骡尽,而不是數(shù)字
from time import sleep
swipe(int(width)/2,int(height)/2,int(width)/2,int(height)/4,duration=sleep(1))
解決方法就是duration,直接傳入sleep骡尽,而不是數(shù)字
from time import sleep
swipe(int(width)/2,int(height)/2,int(width)/2,int(height)/4,duration=sleep(1))