09 2022 档案
摘要:# -*- coding: utf-8 -*- import oss2 import os#官方参考:https://help.aliyun.com/document_detail/88426.html# 阿里云账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM用户
阅读全文
摘要:#coding=utf-8 from __future__ import division import numpy as np import pandas as pd import random import math from sklearn import metrics from sklear
阅读全文
摘要:代码参考: https://mp.weixin.qq.com/s/9D-h0T6ZBeEf09wUQBemnw 使用中文模型,需要下载的文件: 模型文件下载地址:bert-base-chinese at main (huggingface.co) 注意:另存为可能下载的是html,注意文件大小与原始
阅读全文
摘要:1、python打包生成exe过程报错RecursionError: maximum recursion depth exceeded解决办法 【解决办法】打开你生成的spec格式的文件,然后在最上面复制import syssys.setrecursionlimit(5000)然后运行 pyinst
阅读全文
摘要:python调用百度的情感分析API过程 (28条消息) python调用百度的情感分析API过程_SunshinePluto的博客-CSDN博客 def baidu_api(text): new_each = {'text': text} # 将文本数据保存在变量new_each中,data的数据
阅读全文
摘要:from decimal import * a1 = Decimal('1.125').quantize(Decimal('0.00'),rounding=ROUND_HALF_UP) 参考:(27条消息) python 如何四舍五入_doudou_nc的博客-CSDN博客_python 四舍五入
阅读全文
摘要:#top N select id,title,content,score,website_name,publish_time,url from ( SELECT id,title,content,score,website_name,publish_time,url, if(@cid=website
阅读全文