回答編集履歴
2
format
test
CHANGED
@@ -17,3 +17,15 @@
|
|
17
17
|
```
|
18
18
|
|
19
19
|
|
20
|
+
|
21
|
+
```python
|
22
|
+
|
23
|
+
a = 10
|
24
|
+
|
25
|
+
b = a+2
|
26
|
+
|
27
|
+
print "Hello,World!{a}{b}".format(**locals())
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
|
1
%
test
CHANGED
@@ -5,3 +5,15 @@
|
|
5
5
|
print "Hello,World!" + str(a) + str(a+2)
|
6
6
|
|
7
7
|
```
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
```python
|
12
|
+
|
13
|
+
a = 10
|
14
|
+
|
15
|
+
print "Hello,World!%s%s" % (a, a+2)
|
16
|
+
|
17
|
+
```
|
18
|
+
|
19
|
+
|