题目链接
https://leetcode-cn.com/problems/excel-sheet-column-title/
题目描述
代码初步
class Solution(object):
def convertToTitle(self, n):
"""
:type n: int
:rtype: str
"""
res=""
while n:
c = chr(ord('A')+(n-1)%26)
res = c+res
n = (n-1)//26
return res