09 2022 档案

摘要:# -*- coding: utf-8 -*- import oss2 import os#官方参考:https://help.aliyun.com/document_detail/88426.html# 阿里云账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM用户 阅读全文
posted @ 2022-09-26 09:37 cup_leo 阅读(325) 评论(0) 推荐(0) 编辑
摘要:#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 阅读全文
posted @ 2022-09-23 13:50 cup_leo 阅读(334) 评论(0) 推荐(0) 编辑
摘要:代码参考: https://mp.weixin.qq.com/s/9D-h0T6ZBeEf09wUQBemnw 使用中文模型,需要下载的文件: 模型文件下载地址:bert-base-chinese at main (huggingface.co) 注意:另存为可能下载的是html,注意文件大小与原始 阅读全文
posted @ 2022-09-21 10:06 cup_leo 阅读(788) 评论(0) 推荐(0) 编辑
摘要:1、python打包生成exe过程报错RecursionError: maximum recursion depth exceeded解决办法 【解决办法】打开你生成的spec格式的文件,然后在最上面复制import syssys.setrecursionlimit(5000)然后运行 pyinst 阅读全文
posted @ 2022-09-20 11:11 cup_leo 阅读(273) 评论(0) 推荐(0) 编辑
摘要:python调用百度的情感分析API过程 (28条消息) python调用百度的情感分析API过程_SunshinePluto的博客-CSDN博客 def baidu_api(text): new_each = {'text': text} # 将文本数据保存在变量new_each中,data的数据 阅读全文
posted @ 2022-09-16 10:57 cup_leo 阅读(258) 评论(0) 推荐(0) 编辑
摘要:from decimal import * a1 = Decimal('1.125').quantize(Decimal('0.00'),rounding=ROUND_HALF_UP) 参考:(27条消息) python 如何四舍五入_doudou_nc的博客-CSDN博客_python 四舍五入 阅读全文
posted @ 2022-09-14 12:23 cup_leo 阅读(65) 评论(0) 推荐(0) 编辑
摘要:#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 阅读全文
posted @ 2022-09-07 16:59 cup_leo 阅读(66) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示