回答編集履歴
1
修正
test
CHANGED
@@ -7,3 +7,17 @@
|
|
7
7
|
# ['11:36:49.75', '11:36:50.25']
|
8
8
|
|
9
9
|
```
|
10
|
+
|
11
|
+
### 修正(整数部分が6桁未満時の考慮)
|
12
|
+
|
13
|
+
```python
|
14
|
+
|
15
|
+
l=['23348.75','23349.00']
|
16
|
+
|
17
|
+
print([f'{s.zfill(9)[:2]}:{s.zfill(9)[2:4]}:{s.zfill(9)[4:]}' for s in l])
|
18
|
+
|
19
|
+
# ['02:33:48.75', '02:33:49.00']
|
20
|
+
|
21
|
+
```
|
22
|
+
|
23
|
+
小数点以下は2桁固定前提で。
|