반응형
-
[파이썬]while, for 반복문 탈출과 계속하기 - break, continue 이번 포스팅에서는 while과 for 같은 반복문에서 조건문이 True인 경우에도 반복문을 탈출할 수 있게 해주는 break와 반복문의 시작 지점으로 돌아가게 해주는 continue에 대해 알아본다. 반복문 강제로 탈출하기 - break break로 반복문 강제로 탈출하기 while문의 조건문이 True일 경우에도 break로 while문을 빠져나올 수 있다. count = 0 while True: count += 1 print('현재 카운트 %d' %count) if count == 5: break print('while문 탈출') #결과 출력 현재 카운트 1 현재 카운트 2 현재 카운트 3 현재 카운트 4 현재 카운트 5 while문 탈출 위 예문을 보면 조건문은 항상 True이기 때문에 while문..
-
25.09.24 - Festival English 1. What is your favorite festival, and why do you enjoy it? - I love watching game competitions, particularly Legue of Legend which is an MOBA game. Around the end of year, The World Chapionship is held where many different teams from other countries participate in and play at each other. As I grow older and older, the more I enjoy at home than outside. I like watching the game matches from TV w.. -
25.09.23 - Placing an order at a cafe 1. What type of coffee do you usually order at a cafe, and why? - I usally order an iced americano when I go to a cafe. I actually used to have frappuchino everytime I was at a cafe, but since I made up my mind to cut back on sugar, I haven't had frappuchino things very much. Actually I'm trying to cut back on caffeine too, but I have no other options but americano. The main reason I go to cafes.. -
25.09.23 - Grocery shopping 1. What do you usually buy when you go grocery shopping? - I always grab some zero-sugar drinks like Pepsi Zero Lime. It's my absolute favorite. I also like to check out the deli section, especially right before the store closes, because that's when they have a lot of food on sale. The food always smells amazing and is cheaper, so I usually end up buying some, even though it's often not as tasty.. -
25.09.16 - My exercise routine 1. What kind of exercise do you like the most? Why? - I like weight training the most because I can see the results of my hard work. While cardio is great for heart health and I know I need it, I think men should have some muscle. Plus cardio like running takes a lot of time and can be boring. Keeping my workout sessions short helps me stay consistent.2. How often do you work out? - I used to hi.. -
25.09.16 - Sticking to my routine 1. What is your morning routine? - When I wake up, the very first thing I do is drink some water because I always wake up feeling a bit dehydrated. So, I walk to the kitchen, turn on the purfier and have a glass. - After drinking water, I get ready for work. I brush my teeth, wash my face and hair. And I put on some lotion. - Next, I make my bed unless my wife is still sleeping. I grab a corner.. -
25.09.15 - Extra cooking 1. 얘기가 나와서 말인데, 나 실수로 불고기를 2인분을 꺼냈잖아. - Speaking of it, I'd accidentally taken out 2 meals worth of Bulgogi.→ Speaking of which, I accidentally took out 2 servings (of Bulgogi).2. 이미 고기를 꺼내서 해동했으니 어쩔 수 없이 요리를 해야했어 - Since I'd already thawed them, I couldn't help but cook them all.(couldn't help 감정적인 충동)→ Since I'd already thawed them, I had no choice but cook both.3. 하나는 바로 요리해서 먹었고, 다른 하나는 볶음밥을.. -
25.09.15 - Cooking for myself while she's away 1. 우리 와이프가 현재 도쿄로 여행을 갔어 - My wife is currently on her trip to Tokyo.→ My wife is in Tokyo right now.→ My wife is traveling in Tokyo.2. 와이프가 여행가니까 솔직히 좋아. 집에 혼자 있으니까 편해. 아무거도 신경쓰지 않고 온전히 휴식을 취할 수 있으니까 말이야. - Actually I feel good that she left. I feel comfortable at home being alone. I don't need to take care of anything and I can just relax on my own.→ To be honest, it's nice having the place to.. -
25.09.14 - Cooking Is a lot of work 1. 와이프가 집에 없다보니까 혼자 밥을 차려먹게 됐어. - Now that my wife is on her trip right now, I've had to cook for my self.→ My wife is away on a trip. So I've been cooking for myself2. 와이프가 오랫동안 여행을 가면 주로 냉동실에 이것저것 얼려놓구 가 - She usually cooks and puts a bunch of food in the freezer for me when she leaves for long.→ She usually cooks a bunch of stuff and freezes it for me before she leaves for a long trip.3. 이번엔 ..
반응형