
Python
cqu_math_szu_ai
这个作者很懒,什么都没留下…
展开
-
leetcode的python代码实现,间断性更新
前面的题目以后在慢慢补,我自己先从23题开始写起,刷leetcode对我的编码能力提高有很大的帮助 23.Merge K sorted lists Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1-...原创 2018-11-08 17:39:08 · 290 阅读 · 0 评论 -
python代码技巧
sh python有时使用标准 os 和 subprocess 库会有点棘手, 但是在某些情况下,直接调用shell中的命令,比起自己重新造轮子,可能更加省时,且更加方便,但是我们不能总是使用os.system(your_cmd)来执行,这是可以用sh包 没有的话, pip install sh 使用方法, 和基本的python函数一样 from sh import * sh.pwd...原创 2019-08-27 09:39:59 · 155 阅读 · 0 评论