摘要:
列表解析 列表解析总共有两种形式: 1. [i for i in range(k) if condition]:此时if起条件判断作用,满足条件的,将被返回成为最终生成的列表的一员。 2. [i if condition else exp for exp]:此时if...else被用来赋值,满足条件 阅读全文
摘要:
Problem 63 https://projecteuler.net/problem=63 Powerful digit counts The 5-digit number, 16807=75, is also a fifth power. Similarly, the 9-digit numbe 阅读全文
摘要:
Problem 56 https://projecteuler.net/problem=56 Powerful digit sum A googol (10100) is a massive number: one followed by one-hundred zeros; 100100 is a 阅读全文