Skip to content

Commit

Permalink
多开时加入更多错误提示,避免崩溃
Browse files Browse the repository at this point in the history
  • Loading branch information
lisai9093 committed Jul 27, 2024
1 parent a6b0e94 commit cfdd433
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ def startup():
while True:
try:
idx=int(input('监测到多个安卓设备,请选择想要运行的设备:'))
device=devices[idx]
except ValueError:
print('请输入数字')
continue
except:
print('数字超出范围(0-'+str(len(devices))+')')
else:
break
device=devices[idx]
print('使用设备:',device)
#change resolution
screen=screenshot([])
Expand Down

0 comments on commit cfdd433

Please sign in to comment.