mizukiryoya
commited on
Commit
Β·
8a8bd54
1
Parent(s):
2a77e01
test
Browse files- app.py +10 -0
- demo_themeDB.xlsx +0 -0
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import openpyxl
|
| 2 |
+
theme_dbs = openpyxl.load_workbook("demo_themeDB.xlsx", data_only=True)
|
| 3 |
+
if "γγΌγ―γγΌγ γΊζε" in theme_dbs.sheetnames:
|
| 4 |
+
theme_db = theme_dbs["γγΌγ―γγΌγ γΊζε"]
|
| 5 |
+
else:
|
| 6 |
+
theme_db = theme_dbs.create_sheet(title="γγΌγ―γγΌγ γΊζε")
|
| 7 |
+
theme_db.append(["theme_key", "status", "id"])
|
| 8 |
+
|
| 9 |
+
theme_db.append(("1", "2", "3"))
|
| 10 |
+
theme_dbs.save("demo_themeDB.xlsx")
|
demo_themeDB.xlsx
ADDED
|
Binary file (16.6 kB). View file
|
|
|