grapefruit623 正在
10 years ago
剛看到別人寫的python code: 在不使用數字的情形下 輸出 2014
grapefruit623
10 years ago
print sum(ord(c) for c in 'Happy new year to you!')
grapefruit623
10 years ago
'Happy new year to you!' 每個字元的unicode值 加總就是2014
grapefruit623
10 years ago
哪個天才想到的啊!
立即下載