Comments (1)
@ckybonist 现在是这么写的
if __name__ == '__main__':
leetcode = Leetcode()
while True:
do_job(leetcode)
time.sleep(24 * 60 * 60)
这样可以方便你部署到 VPS 上面,运行之后,就可以每天自动更新你在leetcode上的刷题状态了,不用每次都重新跑一遍
如果你只想跑一次的话,可以 ctrl-c 结束 或者 改成
if __name__ == '__main__':
leetcode = Leetcode()
do_job(leetcode)
具体看个人需求
from leetcode.
Related Issues (20)
- Cannot download the solution code from leetcode HOT 12
- Nice work! HOT 1
- python2.7+ubuntu HOT 1
- mac os 10.12 执行报错 HOT 1
- Windows 环境报错 HOT 4
- 建议将Leetcode solution auto generator与solutions分成两个repo HOT 1
- sometimes it doesn’t work.... HOT 3
- Locked problem with Leetcode Premium HOT 3
- Error messages about Message: no such element: Unable to locate element: {"method":"id","selector":"id_login"} HOT 2
- 第三方账号登陆
- i think leetcode changes his website again HOT 5
- No solution with the set languages in question HOT 2
- 报错WebDriverException HOT 2
- support 4 digits problem ids HOT 1
- Only downloaded 6 problems for me HOT 1
- run "python3 leetcode_generate.py" get back of these.... HOT 1
- update with solutions
- self._load_solution_language() error HOT 4
- Generator does not work correctly for C++ and C# codes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leetcode.