Excel Sheet Column Title

Source: Internet
Author: User

The 1,10 is converted into 26, but it needs to be noticed minus 1 first.

2,CHR (i): Returns the ASCII character corresponding to the integer i. Contrary to the Ord () effect.

3, reverse return can be directly used res[::-1].

There is no append (Var), insert (Index,var), Pop (Var), and other methods that are owned by a list of string types in 4,python, which require special attention.

5,python does not have to declare data types like C + +, but can also be declared, such as string= ' (string), list=[] (list), tuple= (1,1,2,3,) (cannot be changed after a tuple declaration)

classSolution: # @param {integer} N # @return {string} def converttotitle (self, N): Flag=Nstring="'         whilen!=0: REM= (n1)% -N= (n1)/ -REM=CHR (rem+ $)            string+=(REM)return string[::-1]



Excel Sheet Column Title

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.