发布时间:2022-12-29 16:28:53
# -*- coding: utf-8 -*-import jiebafrom wordcloud import WordCloudimport numpy as npfrom PIL import Imagefrom matplotlib import colorsimport collectionsdef chinese_jieba(): # 读取目标文本 with open(r'文本.txt', encod.........【阅读全文】
发布时间:2022-12-28 16:31:42
import gradio as grfrom modelscope.pipelines import pipelinefrom modelscope.utils.constant import Tasksfrom modelscope.utils.cv.image_utils import draw_face_detection_no_lm_resultfrom modelscope.preprocessors.image import LoadImagefrom PIL import Imageimport cv2import n.........【阅读全文】
发布时间:2022-12-27 16:30:26
# -*- coding: utf-8 -*-from PyQt5 import QtCore, QtGui, QtWidgetsclass Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") &nb.........【阅读全文】
发布时间:2022-12-26 16:22:38
# 画第一层seth(-120)for i in range(10): fd(12) right(2)penup()goto(0, 150)seth(-60)pendown()for i in range(10): fd(12) left(2)seth(-150)penup()fd(10).........【阅读全文】
发布时间:2022-12-16 17:38:41
# 将 release_date 转化为 pandas支持的时间序列datalist.loc[:, 'release_date'] = pd.to_datetime(datalist.loc[:, 'release_date'])# 获取 发行年份datalist.loc[:, 'release_year'] = datalist.loc[:, 'release_date'].dt.year# 进行字符串分割temp_list = [i.split(",") for i in datalist["gen.........【阅读全文】