# coding = utf8
import os
from write_poem import start_model
path = os.getcwd() # 获取当前工作目录
print(path)
writer = start_model()
def write_poem():
start_with = '大是大非开始了'
poem_style = 4
if start_with:
if poem_style == 3:
return writer.cangtou(start_with)
elif poem_style == 4:
return writer.hide_words(start_with)
if poem_style == 1:
return writer.free_verse()
elif poem_style == 2:
return writer.rhyme_verse()
if __name__ == "__main__":
result = write_poem()
print('result:')
print(result)