teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

2019/04/10 07:59

投稿

tiitoi
tiitoi

スコア21960

answer CHANGED
File without changes

1

2019/04/10 07:59

投稿

tiitoi
tiitoi

スコア21960

answer CHANGED
@@ -1,5 +1,7 @@
1
1
  実行時間はどちらも同じぐらいなので、どちらでも好きなほうを選べばいいのではないでしょうか。
2
2
 
3
+ # Jupyter Notebook で計測した結果
4
+
3
5
  ```python
4
6
  %timeit len(str(12345))
5
7
  # 151 ns ± 0.407 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each)