๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Python ํŒŒ์ด์ฌ/์ฑ…, ๊ฐ•์˜

ํŒŒ์ด์ฌ์œผ๋กœ ๋ฐฐ์šฐ๋Š” ๋ˆ„๊ตฌ๋‚˜ ์ฝ”๋”ฉ 2์žฅ 62์ชฝ ์ค‘๊ฐ„ ์ ๊ฒ€ ์ •๋‹ต

by ๋น„์†Œ์•ผ 2022. 10. 22.
728x90

ํŒŒ์ด์ฌ์œผ๋กœ ๋ฐฐ์šฐ๋Š” ๋ˆ„๊ตฌ๋‚˜ ์ฝ”๋”ฉ 2์žฅ 62์ชฝ ์ค‘๊ฐ„ ์ ๊ฒ€ ์ •๋‹ต

 

6.

(1) ๋‹ต:

1
int("156")
cs

 

(2) ๋‹ต:

๋ฐฉ๋ฒ•1

1
int("0b101"0)
cs

๋ฐฉ๋ฒ•2

1
int("101"2)
cs

 

(3) ๋‹ต:

๋ฐฉ๋ฒ•1

1
int("0o11"0)
cs

๋ฐฉ๋ฒ•2

1
int("11"8)
cs

 

(4) ๋‹ต:

๋ฐฉ๋ฒ•1

1
int("0xf"0)
cs

๋ฐฉ๋ฒ•2

1
int("f"16)
cs

 

7. ๋‹ต:

1
2
name = input("๋‹น์‹ ์˜ ์ด๋ฆ„์€? ")
print("๋งŒ๋‚˜์„œ ๋ฐ˜๊ฐ€์›Œ์š”, " + name + "์”จ!")
cs

 

728x90