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

質問編集履歴

1

誤字の修正

2021/06/17 14:06

投稿

noob_mugy
noob_mugy

スコア2

title CHANGED
File without changes
body CHANGED
@@ -1,7 +1,7 @@
1
1
  1000 → 1,000 や、 10000 → 10,000 のように、数を3桁ごとにコンマで区切るプログラムを作りたいです。
2
2
 
3
3
 
4
- 正規表現を使えば、
4
+ formatメソッドを使えば、
5
5
 
6
6
  ```python
7
7
  '{:,}'.format(1000)