文章目录 一、题目二、题解 一、题目
Given a string columnTitle that represents the column title as appears in an Excel sheet, return its corresponding column number.
For example:
A -> 1 B -> 2 C -> 3 … Z -> 26 AA -> 27 AB -> 28 …
Exa…
列表推导式与生成式表达式的区别:
列表推导式 res[i for i in range(6)]
print(res) 结果: [0, 1, 2, 3, 4, 5] 生成表达式: res(i for i in range(6))
print(res) 结果: <generator object <genexpr> at 0x0000013EAD0…