MuXTing / easy_leetcode

leetcode python pacakege , study leetcode code in local. leetcode python刷题包,你可以用它离线本地web端刷题学习,含500左右常见刷题和答案,一键运行,做markdown笔记。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

easyleetcode

use it, from pip:pip install easyleetcode

then , only 2 line code , in any location:

from easyleetcode import run

run()
# or run(host="127.0.0.1", port=8080, py_cmd_path='python ')
# or run(host="127.0.0.1", port=8080, py_cmd_path='python3 ')
# or run(host="127.0.0.1", port=8080, py_cmd_path='/Users/xxxxx/anaconda3/bin/python3 ')
# or run(host="127.0.0.1", port=8080, py_cmd_path='D:\xxx\Python\python3.exe ')

or use it, from source code : clone source then:

  • 1.pip install these package >> ['uvicorn', 'fastapi', 'pydantic', 'aiofiles', 'jinja2']
  • 2.run python script : easyleetcode/web/main.py

note:

If you run error in Windows platform,tell me.

Because Windows platform I have't test

note:

If you click 'Run Code' Button, but no result feedback ,tell me. or, please check your system's Python run enviroment.

Maybe your run function Setting error , PS:

run(host="127.0.0.1", port=8080, py_cmd_path='python ')

run(host="127.0.0.1", port=8080, py_cmd_path='python3 ')

run(host="127.0.0.1", port=8080, py_cmd_path='/Users/xxxxx/anaconda3/bin/python3 ')

run(host="127.0.0.1", port=8080, py_cmd_path='D:\xxx\Python\python3.exe ')


Introduction

>Video Bilibili Introduction

  • Hello Python 程序员//Hello Python programmer
  • 你可以用它//You can use it
  • 成为轻松刷Leetcode的大神//Become the God of leetcode
  • 你可以用它//You can use it
  • 在线运行或添加你的任意Python代码//Run or add your arbitrary Python code online
  • 你可以用它//You can use it
  • 给你的任意Python代码做Markdwon笔记//Take markdwon notes for any Python code you want
  • 它运行非常流畅//It runs very smoothly
  • 你可以把它当做代码笔记包 // You can use it as leetcode study package

code list view

all code list , you can add new code or

edit code or note markdown or see video (if exist, tell me)

or select contain keyword code use button 'Find'


select code

only see contain 'Sum' code


code show view

code detail view

you can run & debug & study & add code & note Markdown

you can edit you python code & run you code online !


code markdown note view

code's markdown note

you can click Edit Button to Edit you note


code markdown note edit view

code's markdown note can easy online edit, and

you can click Save Button to Save you Edited note

left textarea to edit Markdown, right textarea show markdown's result view

About

leetcode python pacakege , study leetcode code in local. leetcode python刷题包,你可以用它离线本地web端刷题学习,含500左右常见刷题和答案,一键运行,做markdown笔记。


Languages

Language:Python 94.1%Language:HTML 5.9%Language:Shell 0.0%