質問編集履歴
1
コードの挿入
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,8 +14,35 @@
|
|
14
14
|
SyntaxError: unexpected EOF while parsing
|
15
15
|
### 該当のソースコード
|
16
16
|
|
17
|
+
```#!/usr/bin/env python3
|
18
|
+
# -*- coding: utf-8 -*-
|
17
|
-
|
19
|
+
"""
|
20
|
+
Created on Sun May 10 15:26:30 2020
|
18
21
|
|
22
|
+
@author: yuuka
|
23
|
+
"""
|
24
|
+
import glob
|
25
|
+
import os
|
26
|
+
import random
|
27
|
+
import cvs
|
28
|
+
|
29
|
+
path="/Users/yuuka/Desktop/PDPN/"
|
30
|
+
outpath="/Users/yuuka/Desktop/PDPN2"
|
31
|
+
num_sample_all=568
|
32
|
+
|
33
|
+
# sheet name
|
34
|
+
root_dir='.\sample_1\'
|
35
|
+
|
36
|
+
# get each directory
|
37
|
+
dir_list=glob.glob(no+'\*.jpg')
|
38
|
+
|
39
|
+
for no in sir_list:
|
40
|
+
# get each directory
|
41
|
+
file_list=glob/glob(root_dir+'*')
|
42
|
+
# sort
|
43
|
+
file_list.sort()
|
44
|
+
for i, path in enumerate(file_list):
|
45
|
+
|
19
46
|
```
|
20
47
|
|
21
48
|
### 試したこと
|