|
|
@ -13,7 +13,7 @@ def create_cloud(dic):
|
|
|
|
temp_txt = open("temp.txt", "r", encoding='utf-8').read()
|
|
|
|
temp_txt = open("temp.txt", "r", encoding='utf-8').read()
|
|
|
|
filepath = 'cloudshape'
|
|
|
|
filepath = 'cloudshape'
|
|
|
|
scan_files(filepath) # 扫描词云图背景图文件
|
|
|
|
scan_files(filepath) # 扫描词云图背景图文件
|
|
|
|
cloudshape = filepath + '\\' + "bird.jpg" # 默认背景图片
|
|
|
|
cloudshape = filepath + '\\' + "default.jpg" # 默认背景图片
|
|
|
|
|
|
|
|
|
|
|
|
# 选择词云图背景文件的序号
|
|
|
|
# 选择词云图背景文件的序号
|
|
|
|
picture_no = input("Please select a background by the number in range:")
|
|
|
|
picture_no = input("Please select a background by the number in range:")
|
|
|
|