質問編集履歴

1

プログラムの出力が分かりにくいので変えました

2018/01/02 06:38

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -26,13 +26,13 @@
26
26
 
27
27
  c = con.cursor()
28
28
 
29
- c.execute('select func(val, "hello") from foo')
29
+ c.execute('select val, func(val, "hello") from foo')
30
30
 
31
31
 
32
32
 
33
33
  for row in c:
34
34
 
35
- print(row[0])
35
+ print(row[0], row[1])
36
36
 
37
37
  ```
38
38
 
@@ -44,13 +44,13 @@
44
44
 
45
45
  ```
46
46
 
47
- 1
47
+ tomato 1
48
48
 
49
- 1
49
+ potato 1
50
50
 
51
- 0
51
+ onion 0
52
52
 
53
- 3
53
+ mushroom 3
54
54
 
55
55
  ```
56
56