A. Zoning Restrictions Again ou are planning to build housing on a street. There are n spots available on the street on which you can build a house. T ...
分类:
其他好文 时间:
2020-01-21 23:14:39
阅读次数:
99
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example 1: Input: n = 12 O ...
分类:
其他好文 时间:
2020-01-21 18:22:25
阅读次数:
90
如果遇到问题: __main__:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. 解决方案: 在程序中增加一条语句: import ma ...
分类:
其他好文 时间:
2020-01-21 13:20:43
阅读次数:
545
题目如下: Given a string s. Return all the words vertically in the same order in which they appear in s.Words are returned as a list of strings, complete ...
分类:
其他好文 时间:
2020-01-20 15:11:48
阅读次数:
121
shell里执行的命令有两种: 内部命令(由shell自带) help:内部命令列表 enable cmd:启用内部命令 enable -n cmd:禁用内部命令 enable -a:查看所有启用的内部命令 外部命令:外部可执行程序文件 which cmd:查看命令文件路径,列出首次匹配的路径 wh ...
分类:
系统相关 时间:
2020-01-20 00:22:38
阅读次数:
109
pyenv和pipenv简单使用 一、安装pyenv# 安装pyenv Copy $ git clone git://github.com/yyuu/pyenv.git ~/.pyenv $ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc $ ...
分类:
其他好文 时间:
2020-01-19 20:50:16
阅读次数:
121
命令 su需要被切换用户的密码,比如root的密码,风险大 visudo visudo 赋权root的部分执行权限。 which寻找命令的具体地址。 赋权 ...
分类:
系统相关 时间:
2020-01-18 12:58:06
阅读次数:
117
1. the list is a class which provides methods like sort(), append(), ... list.sort(*, key=None, reverse=None) key specifies a function of one argument ...
分类:
编程语言 时间:
2020-01-18 01:11:59
阅读次数:
84
解决方案 MimeMessageHelper 的执行顺序错了,先执行 setText() 然后执行 addInline() 添加图片 `` 原因分析 "官方文档" : ...
分类:
编程语言 时间:
2020-01-17 23:29:51
阅读次数:
182
1.遇到这么个题目 Write a function, which takes a non negative integer (seconds) as input and returns the time in a human readable format (HH:MM:SS) HH = hour ...
分类:
其他好文 时间:
2020-01-16 23:54:38
阅读次数:
159