๐ŸŒCoding/๐ŸŒŸPython3

[Python] ์•„์Šคํ‚ค์ฝ”๋“œ

๋ฟŒ์•ผ._. 2021. 10. 20. 16:09

๐Ÿ˜‰ ๋ฌธ์ž์—ด -> ์•„์Šคํ‚ค์ฝ”๋“œ 

 

ord()

print(ord('A')) 

# ์ถœ๋ ฅ: 65

 

 

๐Ÿ˜‰ ์•„์Šคํ‚ค์ฝ”๋“œ -> ๋ฌธ์ž์—ด

 

chr()

print(chr(65))

# ์ถœ๋ ฅ: A

 

'๐ŸŒCoding > ๐ŸŒŸPython3' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[Python] ์†Œ์ˆ˜์  ์ž๋ฆฌ ์ˆ˜ ์ถœ๋ ฅ  (0) 2021.10.04
[Python] list, tuple -> String  (0) 2021.09.01
[Python] heapq  (0) 2021.08.20
[Python] lambda  (0) 2021.07.29
[Python] ์ˆœ์—ด, ์กฐํ•ฉ  (0) 2021.05.16