首先在终端输入(不输入序号):
1.pip install ybc_box
2.pip install ybc_speech
3.pip install ybc_weather
4.pip install ybc_poetry
5.pip install ybc_face
6.pip install datetime
然后在Python编辑器里项目根目录中新建文件夹languagex
接着在文件夹中新建Python文件all.py
在all.py里输入
import ybc_box as box
import ybc_speech as sp
import ybc_weather as weather
import ybc_poetry as poetry
import ybc_face as face
from datetime import datetime
def xmsg(st):
e = box.msgbox(st)
return(e)
def xenter(st):
e = box.enterbox(st)
return (e)
def xcode(st):
e = box.codebox(st)
return (e)
#buttonbox:try to use ybc_box.buttonbox()
def xfileopen(title):
e = box.fileopenbox(title)