-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
添加随机值 #641
添加随机值 #641
Conversation
wechat_jump_auto.py
Outdated
if i == next_rest: | ||
print('已经连续打了 {} 下,休息 {}s'.format(i, next_rest_time)) | ||
for j in xrange(next_rest_time): | ||
print(next_rest_time - j) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print ('程序将在{}s后启动'.format(next_rest_time-j))
wechat_jump_auto.py
Outdated
if i == next_rest: | ||
print('已经连续打了 {} 下,休息 {}s'.format(i, next_rest_time)) | ||
for j in xrange(next_rest_time): | ||
print('程序将在 {}s 后继续'.format(next_rest_time - j)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以改成刷新当前行的方式输出,比较麻烦的话可以之后再优化
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print('程序将在 {}s 后继续'.format(next_rest_time - j), end='\r')
好像这样就可以了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好弄,改了
xrange 换成 range吧? |
本次 PR 主要做的事情:
修改后最高分数:x