diff --git a/src/composables/helper.ts b/src/composables/helper.ts
index de1d608..8aa9f30 100644
--- a/src/composables/helper.ts
+++ b/src/composables/helper.ts
@@ -2,15 +2,15 @@ import { ref } from "vue"
export const insertText = ref("")
-export const cTexts = [
+export const cSymbols = [
";",
",",
"&",
"{}",
- " = ",
- " == ",
- " > ",
- " < ",
+ "=",
+ "==",
+ ">",
+ "<",
" != ",
" || ",
" && ",
@@ -22,27 +22,46 @@ export const cTexts = [
"%d",
"%.2f",
"if () {}",
- " else ",
+ "else {}",
+ "a",
+ "b",
+ "c",
+ "\n",
]
-export const pythonTexts = [
+export const pythonSymbols = [
":",
'""',
- " = ",
- " == ",
- " > ",
- " < ",
+ ",",
+ "+",
+ "-",
+ "*",
+ "/",
+ "//",
+ "%",
+ "()",
+ "=",
+ "==",
+ ">",
+ "<",
" != ",
"print()",
"input()",
- "if :",
+ "if ",
"else:",
- "elif :",
"for ",
" in ",
"range():",
- "while",
+ "while ",
"[]",
- "{}",
'"%.2f" % ',
+ "a",
+ "b",
+ "c",
+ "\n",
]
+
+export function getText(c: string) {
+ if (c === "\n") return "回车"
+ else return c
+}
diff --git a/src/mobile/Helper.vue b/src/mobile/Helper.vue
index fb59ce2..18b7691 100644
--- a/src/mobile/Helper.vue
+++ b/src/mobile/Helper.vue
@@ -1,14 +1,14 @@
@@ -21,7 +21,7 @@ const texts = computed(
size="small"
@click="insert(it)"
>
- {{ it }}
+ {{ getText(it) }}