質問編集履歴

1

エスケープ処理の追加

2019/04/17 03:37

投稿

gymgym
gymgym

スコア97

test CHANGED
File without changes
test CHANGED
@@ -31,6 +31,12 @@
31
31
  # 挿入できない文
32
32
 
33
33
  ret = "They just didn't get it, but they do now! "
34
+
35
+
36
+
37
+ #エスケープ
38
+
39
+ ret = db._cmysql.escape_string(ret)
34
40
 
35
41
 
36
42
 
@@ -74,7 +80,21 @@
74
80
 
75
81
  ```
76
82
 
83
+
84
+
85
+ ```ここに言語を入力
86
+
87
+ retのprint出力
88
+
89
+ b"They just didn\'t get it, but they do now! "
90
+
91
+ ```
92
+
77
93
  このような文が出たりします。
94
+
95
+
96
+
97
+ エスケープ処理もしてあります。
78
98
 
79
99
 
80
100