分类目录归档:backend

[ Python使用通义千问 ]


在python中使用通义千问-阿里云

官方api

api-key管理页面

注册

pip install dashscope

配置环境变量

export DASHSCOPE_API_KEY=YOUR_DASHSCOPE_API_KEY

运行

import random
from http import HTTPStatus
import dashscope


dashscope.api_key = "sk-4607ca0bb63d4646b8aeaca909091a9f"

def call_with_messages():
    messages = [{&qu

< Read more >

[ pycharm2023.3.4破解 ]


linux版本pycharm[2023.3.4]

一.pycharm2023.3.4官方linux版本rar(下载后自行修改文件名)

  • 自行安装完成后再破解

二.破解工具下载(下载后自行修改文件名)

1.解压rar文件后

2.进入需要使用的方法(当前使用的是3号方法到2025年)

3.复制jetbra文件夹到一个全英文路径的目录下, 随后进入,执行文件夹scripts内的

sudo bash install.sh

  1. 把vmoptions文件夹里的pycharm.vmoptions最后几行, 添加到pycharm安装目录内bin/pycharm64.vmoptions 这三行
-ja

< Read more >

[ cews项目 ]


local测试 dockerfile

解决下载慢问题

# define an alias for the specific python version used in this file.
FROM python:3.11.3-slim-bullseye as python

# Python build stage
FROM python as python-build-stage

ARG BUILD_ENVIRONMENT=local

RUN  sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.

< Read more >