15
Last seen 7 years ago
Member for 8 years, 1 month, 16 days
Difficulty Normal
if language == "中國": return "我愛Python的 !"
we use '我愛Python!' instead of using '的' as a end.
More
if t & ab: # check t include a, b
s |= t
setlist.remove(t)
wow,Learn it. It can omit one loop for me.
More
Great, it so succinct using heapq, getting loads of ideas to read it.
It seems that headpop get the smallest item, and when it pops a path to the end, it‘s the result, can you explain more about why? Thank you!
More
eye-opening.
Seems that as long as knew a module or method exists before coding can save lots of time.(like ipaddress and bit_length)
BTW, how do i know IPveAddress is sortable and can be converted to type int, try it at command line?
More
I like it!
Every time I see the answer on the top, it shocks me again for how short it can be.
More
I think it's clear but seems has lots of ways to optimize...
Is there anyway to avoid the last for-loop?
More
Great, it's also concise enough, but could you give some explanation to help me to understand?
It's hard for me to know how to determine the weekday by zeller. Thank you.
More
>>> "{0:08b}".format(int('0'))
'00000000'
>>> "{0:08b}".format(int('255'))
'11111111'
wow, now i know why to learn format. Thx
More