๐Ÿ”ฐA1 notation

GAS โŸฉ Classes โŸฉ Range โŸฉ A1 notation

่ฉฆ็ฎ—่กจ็š„ใ€Œๆฌ„ไฝ็ทจ่™Ÿใ€ๆŽก็”จไธ€็จฎๅพˆ็‰นๆฎŠ็š„ใ€Œๆ•ธๅญ—็ณป็ตฑใ€๏ผš

  • A = 1, B = 2, ... , Z = 26ใ€‚

  • ๆฒ’ๆœ‰ใ€Œ0ใ€้€™ๅ€‹็ฌฆ่™Ÿ๏ผŒไนŸ็„กๆณ•่กจ็คบ 0 ้€™ๅ€‹ๆ•ธๅญ—ใ€‚

ไพ‹ๅฆ‚๏ผš26 ๅช่ƒฝ็”จ Z ่กจ็คบ๏ผŒไธ่ƒฝ็”จ A0 ่กจ็คบใ€‚

ABC = 1*26^2 + 2*26 + 3    // ่ฝ‰ๆ›็‚บ 10 ้€ฒไฝ
Z + A = AA                 // = 26 + 1 = AA
ZZ + A = AAA               // = 26ยฒ + 26 + 1 = AAA

Last updated