๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
2022/์˜คํ”ˆ์†Œ์Šค ์†Œํ”„ํŠธ์›จ์–ด ํ”„๋กœ์ ํŠธ

. ๋ฒ„ํŠผ ๊ธฐ๋Šฅ ์ถ”๊ฐ€ ์ˆ˜์ •

by hyeonha 2022. 11. 27.

๋ชฉ์ฐจ

    .์ด ํ•œ ๋ฒˆ ๋ˆŒ๋ ธ๊ณ  

    operation_solution ์ฐฝ์— .์ด ์žˆ๋‹ค๋ฉด ๋”์ด์ƒ .๋ฒ„ํŠผ์„ ๋ˆŒ๋ ค๋„ ํ™”๋ฉด์— .๊ฐ€ ์ฐํžˆ์ง€ ์•Š๋„๋ก ํ•ด์•ผํ•œ๋‹ค.

     

    https://asecurity.dev/entry/Python-%ED%8A%B9%EC%A0%95-%EB%AC%B8%EC%9E%90%EC%97%B4str-%ED%8F%AC%ED%95%A8-%EC%9C%A0%EB%AC%B4contains-%ED%99%95%EC%9D%B8-%EB%B0%A9%EB%B2%95

     

    Python - ํŠน์ • ๋ฌธ์ž์—ด(str) ํฌํ•จ ์œ ๋ฌด(contains) ํ™•์ธ ๋ฐฉ๋ฒ•

    ๋‹ค๋ฅธ ์–ธ์–ด(C#, Java๋“ฑ)์„ ์‚ฌ์šฉํ•˜๋‹ค Python์œผ๋กœ ์ „ํ™˜ํ•˜๋ฉด์„œ ๊ฐ€์žฅ ํ—ท๊ฐˆ๋ ธ๋˜ ๋ถ€๋ถ„์ด ๋ฌธ์ž์—ด ๊ฒ€์ƒ‰ ๋ถ€๋ถ„์ด๋‹ค. ๋ณดํ†ต C# ๊ธฐ์ค€์œผ๋กœ str์— .contains๋ฅผ ํ†ตํ•ด ํŠน์ • ๋ฌธ์ž์—ด์ด ํฌํ•จ ํ•˜๊ณ  ์žˆ๋Š”์ง€๋ฅผ ํ™•์ธ ํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ,

    asecurity.dev

    ์ด๊ฑธ๋กœ .๊ฐ€ ์žˆ๋Š” ์ง€ ๊ฒ€์‚ฌํ•˜๊ณ  ์žˆ์œผ๋ฉด .๊ฐ€ ์•ˆ์ž‘๋™ํ•˜๋„๋ก, ์—†์œผ๋ฉด .๊ฐ€ ์ถ”๊ฐ€๋˜๋„๋ก ๊ตฌํ˜„ํ•ด์ค€๋‹ค.

     

    728x90