HackerTrans
トップ新着トレンドコメント過去質問紹介求人

CmdrKrool

no profile record

コメント

CmdrKrool
·6 か月前·議論
I'm confused by this:

  String operations in Python are fast as well. f-strings are the fastest formatting style, while even the slowest style is still measured in just nano-seconds.
  
  Concatenation (+)   39.1 ns (25.6M ops/sec)
  f-string            64.9 ns (15.4M ops/sec)
It says f-strings are fastest but the numbers show concatenation taking less time? I thought it might be a typo but the bars on the graph reflect this too?
CmdrKrool
·昨年·議論
'n' -> [chrome or firefox autocomplete] -> news.ycombinator.com I have often been thinking about what this reflex does to my mind.