![]() |
2019.04.11 15:07:56 |
´ÄÀºÀ̰¡ ÀÌ·± °Å °øºÎÇØ¾ß Çϳª¿ä;;; |
ÀÌ·± ½ÄÀ¸·Î ÆÄÀ̽㠸®½ºÆ®¿¡ ±Ù¹«½Ã°£ÀÌ ¿Ã¶ó°¡ ÀÖ½À´Ï´Ù.
09:00~18:00#09:00~18:00#18:00~09:00
#Àº ³¯Â¥ ±¸ºÐÀ» À§ÇÑ ±¸ºÐÀÚ°í¿ä
¿öÅ·µ¥ÀÌ, ¿öÅ·½Ã°£À» ±¸ÇÏ´Â ¹®Á¦Àä
1. ¿öÅ·µ¥ÀÌ
w1 = work.split('#')
ÀÌ·± ½ÄÀ¸·Î ½ºÇø´±îÁö´Â Çߴµ¥
ÀÌ°É ¶Ç '~'¸¦ ±¸ºÐÀÚ·Î ½ºÇø´Çؼ ½Ã°£ °è»ê ÇØº¸·Á´Âµ¥ Àß ¾ÈµÇ³×¿ä;;
Áú¹® | 3,110¸íÀÌ Àоú¾î¿ä.
|





9°³ÀÇ ´ñ±Û |
Àü¸ð¸£°Ú³×¿ä.. | |
2019/04/11 15:30
|
½ºÇø´Çؼ ¹ÞÀº ¹è¿µé¿¡ ´ëÇØ¼ ~·Î ½ºÇø´ÇÏ°í ´Ü¼ø °è»êÇÏ¸é µÇ°Ú³×¿© | |
2019/04/11 15:45
|
½ºÇø´ ÇÏ°í ¶Ç ½ºÇø´ Ç϶õ ¾ê±ä°¡¿ä?? | |
2019/04/11 15:45
|
work = "09:00~18:00#09:00~18:00#18:00~09:00"
t1 = work.split('#') ÀÌ·¸°Ô ½ºÇø´ Çߴµ¥ Àú°É ¶Ç ½ºÇø´ ÇÒ ¼ö ÀÖ³ª¿ä?? |
|
2019/04/11 16:39
|
https://wikidocs.net/13#split
splitÀº list¸¦ ¸®ÅÏÇÏ´Ï±î ³ª¿Â °á°ú t1¿¡¼ for loopÀ» µ¹´ø ÇÔ¼ö·Î ÇÏ´ø Çѹø ´õ split ÇØº¸¼¼¿ä ¿¹¸¦µé¸é for dates in t1: start_date = dates.split('~')[0] end_date = dates.split('~')[1] print(start_date, end_date) |
|
2019/04/11 17:03
|
³Ü °¨»çÇÕ´Ï´Ù | |
2019/04/11 17:05
|
°øºÎ ¸ØÃß´Â ¼ø°£ÀÌ ÁúÂî ´ÄÀº Åð¹° µÇ´Â ¼ø°£ | |
2019/04/11 19:43
|
´Ù¸¥ ¾ð¾îó·³ ¿¡µðÅÍ·Î ÄÚµù ´Ù ÇÑ ´ÙÀ½¿¡ µ¹·Áº¸°í ±×·¯Áö ¸»°í
°Á ÀÎÅÍÇÁ¸®ÅÍ ¶ç¿ö³õ°í ÇÑÁÙÇÑÁÙ Áï¼®¿¡¼ Å×½ºÆ®Çϰí print·Î °ªµµ Âï¾îº¸°í ÇØº¸¼¼¿ä quickbasicÀ̳ª python°°Àº ÀÎÅÍÇÁ¸®ÅÍ ¾ð¾î°¡ ¼¼»ó¿¡¼ °¡Àå ¹è¿ì±â ½¬¿î ¾ð¾îÀε¥... |
|
2019/04/11 19:59
|