print(["You are good, " + x for x in ["Zero, Jonathan"]])
#결과 #[0, 1, 2, 3, 4] #[0, 4, 6, 8] #['You are good, Zero, Jonathan'] # set comprehension print({"You are good, " + x for x in ["Zero, Zero"]})
# 결과 # {'You are good, Zero, Zero'} # dictionary comprehension score = [('merlin', 90), ('zero', 80), ('samuel', 95)] print({x[0]: x[1] for x in score})
# 결과 # {'merlin': 90, 'zero': 80, 'samuel': 95} # generator expression gen = (x+1 for x in range(5)) print(gen) print(next(gen)) print(next(gen)) print(next(gen))
# 결과 # <generator object <genexpr> at 0x103721570> # 1 # 2 # 3
여기에 sum을 사용해 lambda 처럼 비슷하게 사용할 수 있다.
print([1 for x in range(5)]) #[1, 1, 1, 1, 1] print(sum([1 for x in range(5)])) #5
NOTE:The plugins are currentlynot compatible to Gradle 5+and have not been tested with a JDK higher than 1.8. Currently a lot of issues arise related to using the plugins with Gradle 5+. There are plans to adopt the plugins to the newest Gradle API but time is lacking. Help is pretty much appreciated. Please seehttps://github.com/ewerk/gradle-plugins/milestone/1.
jdk 10+, gradle 5+를 써도 컴파일되긴 한다... 다만 안정성은 보장 못하니.. 조심하게 사용할 필요가 있다.
쿠옥은 이에 대해 "내가 말할 수 있는 것은 다른 입장이 돼 생각해보라는 것"이라며 "당신의 어머니, 여자형제, 아내, 여자친구가 짐승 취급당했다면 어떨까?"라고 되물었다. 이어 "나는 일본 회사와 같이 일하고 있고 일본인과도 친구이며 그들을 이해하고 있지만, 동시에 나는 그들이 과거 멍청한 행동을 반복하지 않길 바란다"고 덧붙였다.
쿠옥은 "일제는 대동아 공동번영을 위해 (말레이시아 침공에) 나섰다고 말했지만 '공동번영'이라는 의미는 일본이 90%를 가져가고 10%만을 주겠다는 뜻"이라며 식민통치를 비판했다.
댓글을 달아 주세요