python
哈哈大师2017
笨鸟先飞
展开
-
python positional argument follows keyword argument
python positional argument follows keyword argument当参数的位置不正确时,就会报上面的错误;关键字参数必须跟随在位置参数后面! 因为python函数在解析参数时, 是按照顺序来的, 位置参数是必须先满足, 才能考虑其他可变参数.谨记!!!!...原创 2018-03-14 21:34:43 · 72297 阅读 · 0 评论 -
(leetcode)264. Ugly Number II(DP/Python)
Write a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12 is the sequence of the first 10 ugl...原创 2018-03-02 16:44:25 · 414 阅读 · 0 评论