MapleStory Finger Point

โ˜… 571

๊ธ€์ž,์ˆซ์ž,๊ธ€์ž+์ˆซ์ž ๋“ฑ๋“ฑ ๋ฌธ์ž์—ด ํŒ๋ณ„ ํ”„๋กœ๊ทธ๋žจ - ํŒŒ์ด์ฌ for Beginner (2ํŒ)

ss = input("๋ฌธ์ž์—ด ์ž…๋ ฅ == >") if ss.isdigit() == True : print("์ˆซ์ž์ž…๋‹ˆ๋‹ค") elif ss.isalpha() == True : print("๊ธ€์ž์ž…๋‹ˆ๋‹ค") elif ss.isalnum() == True : print("์ˆซ์ž+๊ธ€์ž์ž…๋‹ˆ๋‹ค") else : print('๋ชจ๋ฅด๊ฒŒ์จ์šฉ')

๋ฌธ์ž์—ด ์ค‘๊ฐ„์˜ ๊ณต๋ฐฑ ์‚ญ์ œ ํ•˜๊ธฐ - ํŒŒ์ด์ฌ for Beginner (2ํŒ)

inStr = " ํ•œ๊ธ€ python ํ”„๋กœ๊ทธ๋ž˜๋ฐ ~ " outStr ="" for i in range(0,len(inStr)) : if inStr[i] != ' ': outStr += inStr[i] print("์›๋ž˜ ๋ฌธ์ž์—ด ==> " + '[' + inStr + ']' ) print("๊ณต๋ฐฑ ์‚ญ์ œ ๋ฌธ์ž์—ด ==> " + '[' + outStr + ']' )

(๊ฐœ๋…) ๋ฌธ์ž์—ด - ํŒŒ์ด์ฌ for Beginner (2ํŒ)

· ๋ฌธ์ž์—ด "", '' ๋กœ ๋ฌถ์–ด ํ‘œํ˜„๋œ ๊ฒƒ => ์ถœ๋ ฅํ•˜๋ฉด '' ์ž‘์€ ๋”ฐ์˜ดํ‘œ๋กœ ์ถœ๋ ฅ๋จ. · ๋ฆฌ์ŠคํŠธ์™€ ๋ฌธ์ž์—ด์€ ๋น„์Šทํ•˜๋‹ค aa=[1,2,3] a[0] a[1:3] a[3:] ss="ํŒŒ์ด์ฌ์ตœ๊ณ " ss[0] ss[1:3] ss[3:] · ๋ฌธ์ž์—ด ์—ฐ๊ฒฐ --- + , * ss="Hello" + "World" ss="Hello"*3 · ๋ฌธ์ž์—ด ๊ธธ์ด --- len () len(ss) · ๋ฌธ์ž์—ด ํ•จ์ˆ˜ --- upper() : ์†Œ๋ฌธ์ž๋ฅผ ๋Œ€๋ฌธ์ž๋กœ --- lower() : ๋Œ€๋ฌธ์ž๋ฅผ ์†Œ๋ฌธ์ž๋กœ --- swapcase() : ๋Œ€,์†Œ๋ฌธ์ž ์ƒํ˜ธ ๋ณ€ํ™˜ --- title() : ๊ฐ ๋‹จ์–ด์˜ ์•ž๊ธ€์ž๋งŒ ๋Œ€๋ฌธ์ž๋กœ ๋ณ€ํ™˜ --- count() : ์ฐพ์„ ๋ฌธ์ž์—ด์ด ๋ช‡๊ฐœ์ธ์ง€ ๊ฐœ์ˆ˜ --- find() : ์™ผ์ชฝ 0๋ฒˆ๋ถ€ํ„ฐ ๋ช‡๋ฒˆ์งธ ์œ„์น˜ํ•œ์ง€ ์ฐพ์Œ (๋ฌธ์ž์—ด์—†์œผ๋ฉด -..