编译器python codon llvm

qllove Python基础【18】list实现对列和栈

定义一个队列,每次从index=0的位置插入元素 定义一个list当做栈,每次从尾部添加元素,从栈里取出元素(后进的先取) ......
基础 qllove Python list

【Python】datetime函数用法

datetime.date 表示日期的类 日期对象 print("日期的类:", datetime.date(2023, 11, 21)) print("当天的年月日:", datetime.date.today()) print("当天的年:", datetime.date.today().yea ......
函数 datetime Python

Python常用语法

[m:n] #切片操作,取a[m]~a[n-1]之间的内容,m\n可以为负,m>n时返回空 [m::n] #从a[m]开始,每跳|n|个取一个,当n为负时逆序取数,当n为正的时候,m为空则默认m=0,n为负时,m为空则默认为-1 若局部变量和全局变量名重合:函数内存在变量,函数内只会调用局部变量,如 ......
语法 常用 Python

[oeasy]python0 113_字符编码_VT100控制码_iso_8859_1_拉丁字符_latin

拉丁字符 回忆上次内容 上次回顾了字型编码的进化过程 7-bit 的 点阵字库 终于让 字母、数字、标点 明确了字型 但是 7-bit 的 ascii中 没有法文字符的位置 ​ 添加图片注释,不超过 140 字(可选) 如果扩展位为1 不同的计算机厂商 有各自不同的 扩展方式 这噩梦 比法语不兼容 ......
字符 编码 python0 python oeasy

python3 异步并发

python3 异步并发 1. TCPConnector 链接池 import asyncio from aiohttp import ClientSession, TCPConnector async def aiohttp_get(): url = 'url' conn = TCPConnect ......
python3 python

python3 抽象类Abstract Classes

python3 抽象类Abstract Classes 抽象类可以这么理解,它就是一个模板,里面声明了子类必须定义的函数,但是对于每个函数都没有给出具体实现。所有函数的实现都是在子类中定义。我们这里给出抽象类的定义方式: from abc import ABC, abstractmethod cla ......
Abstract python3 Classes python

python从指定源安装库

pip install -r requirements.txt -i http://pypi.douban.com/simple ......
python

Python相关练习

我又来练习啦! 1、将一个列表的内容复制到另外一个列表里面 2、输出九九乘法表 3、统计1到100的和 4、转战PTA作业(函数篇)--使用函数输出指定范围内Fibonacci数的个数 def fib(n): if(n==0 or n==1): return 1 else: return fib(n ......
Python

在64位下编译32位Linux内核编译错误

一些编译报错 - 爱码网 (likecs.com) (32条消息) 新版linux上编译老版本的kernel出现kernel/timeconst.h] Error 255_Essence Chen的博客-CSDN博客 ......
下编 内核 错误 Linux

3-springboot编译报错Relying upon circular references is discouraged and they are prohibited by default

如果是.properties文件,在文件中添加 spring.main.allow-circular-references=true 如果是.yml文件,则在文件中添加 spring: main: allow-circular-references:true文章参考:https://blog.csd ......

linux 安装 gdal python

一、下载相应的GDAL-3.4.1-cp39-cp39-manylinux_2_5_x86_64.xxx.whl 地址:https://sourceforge.net/projects/gdal-wheels-for-linux/files/ pip install GDAL-3.4.1-cp38- ......
python linux gdal

100道python基础题——(13)

题:编写一个接受句子并计算字母和数字的程序。假设为程序提供了以下输入:Hello world! 123然后,输出应该是:字母10数字3 提示:如果输入数据被提供给问题,则应该假定它是控制台输入。 s = input()k = 0h = 0for a in s: if a.isdigit():#检测数 ......
基础 python 100

100道python基础题——(14)

题:编写一个接受句子的程序,并计算大写字母和小写字母的数量。假设为程序提供了以下输入:Hello world!然后,输出应该是:大写实例 1小写实例 9 提示:如果输入数据被提供给问题,则应该假定它是控制台输入。 s = input()k = 0h = 0for a in s: if a.isupp ......
基础 python 100

100道python基础题——(15)

题:编写一个程序,计算a + aa + aaa + aaaa的值,给定的数字作为a的值。假设为程序提供了以下输入:9 然后,输出应该是: 11106 提示:如果输入数据被提供给问题,则应该假定它是控制台输入。 a = input()n1 = int( "%s" % a )n2 = int( "%s% ......
基础 python 100

Python中NameError: No such file or directory 解决方法

问题 最近有小伙伴经常问到这个报错,今天来分享一下具体怎么解决。 [Errno 2] No such file or directory: './mnist_image_label/mnist_train_jpg_60000.txt' 这个没有查找到子文件或者子文件夹的问题 解决方法 首先,确定所写 ......
NameError directory 方法 Python such

使用Python突破某网游游戏JS加密限制,进行逆向解密,实现自动登录!

今天来分享一下如何使用Python突破某网游游戏JS加密限制,进行逆向解密,实现自动登录。 逆向目标 目标:某 7 网游登录 主页:aHR0cHM6Ly93d3cuMzcuY29tLw== 接口:aHR0cHM6Ly9teS4zNy5jb20vYXBpL2xvZ2luLnBocA== 逆向参数:Qu ......
Python

liunx 安装 python 虚拟环境, 各种方法,

liunx 安装 python 虚拟环境,主要是要解决工作中需要用到python3.6,但是系统的2.7又不能动,安装系统组件时避免造成冲突。低版本的python安装django uwsgi 等都用不了, 首先安装python物理环境Python3.6.5(django是基于Python3安装的) ......
环境 方法 python liunx

【python】多线程并发,rpc接口性能测试

1、官方文档 https://docs.python.org/3/library/concurrent.futures.html 2、安装 python 3.x中自带了concurrent.futures模块 python 2.7需要安装futures模块,使用命令pip install futur ......
线程 接口 性能 python rpc

[Python3.10] 安装flask-mysqldb失败

【问题描述】 搭建flask环境的过程中,安装flask-mysqldb时失败 (flaskEnv) root@rak:/home/rak/enthusiastic666/flaskProject# pip install flask-mysqldb Collecting flask-mysqldb ......
flask-mysqldb Python3 mysqldb Python flask

Python中获取文件大小

这篇文章将讨论如何在 Python 中获取文件的大小。 1.使用 os.stat() 功能 获取文件状态的标准解决方案是使用 os.stat() Python 函数。它返回一个 stat_result 对象,它有一个 st_size 包含文件大小(以字节为单位)的属性。 12345 import o ......
大小 文件 Python

python3中使用tf

python3中import tf报错,记录,ubuntu18.04环境,树莓派。 1、编辑.bashrc文件,注释 # source ~/你的workspace/devel/setup.bash 2、安装catkin build sudo apt-get install python-catkin ......
python3 python

检查python代码质量工具

Pylint是一个非常强大的Python代码静态分析工具,并使用方便。下面是使用Pylint的步骤: 安装Pylint 你可以使用以下命令通过pip安装Pylint: pip install pylint 运行Pylint 在命令行中输入以下命令即可对Python脚本进行静态分析: pylint s ......
代码 质量 工具 python

如何写好Python的Lambda函数?

当你需要完成一件小工作时,在本地环境中使用这个函数,可以让工作如此得心应手,它就是Lambda 函数。 Lambda 函数是 Python 中的匿名函数。有些人将它们简称为lambdas,它们的语法如下: lambda arguments: expression lambda 关键字可以用来创建一个 ......
函数 Python Lambda

【Python】Jupyter Notebook:IOPub message rate exceeded. The notebook server will temporarily stop sending output to the client in order to avoid crashing it..解决方案

✨报错提示 IOPub message rate exceeded. The notebook server will temporarily stop sending output to the client in order to avoid crashing it. To change thi ......

Python报错:RuntimeError: Working outside of application context.

这个错误通常表示您在Flask应用程序上下文之外尝试访问Flask扩展或对象。 您需要在应用程序上下文中访问它们。 一种解决方法是在应用程序上下文中使用with语句包装代码块。 例如,以下代码块中的Post对象是Flask-SQLAlchemy实例db的实例,如果在应用程序上下文之外调用它,将引发R ......

使用Python标准库修改 Windows 系统代理

转载:https://www.jianshu.com/p/6862d35e2855?tdsourcetag=s_pcqq_aiomsg Why 在用 Python 编写一些网络相关的脚本时经常会需要连上特定代理。而面向 Google 编程又必须能时刻上 Google 。来回切换实在太麻烦。必然要让脚 ......
Windows 标准 Python 系统

实验一 密码引擎-1-OpenEuler-OpenSSL编译

实验任务 安装Ubuntu和OpenEuler虚拟机 下载最新的OpenSSL源码(1.1版本) 用自己的8位学号建立一个文件夹,cd 你的学号,用pwd获得绝对路径 参考https://www.cnblogs.com/rocedu/p/5087623.html先在Ubuntu中完成OpenSSL编 ......

python的人脸识别库face_recognition

代码: import cv2 import numpy as np import face_recognition img_train = face_recognition.load_image_file('query/1679370481783.jpg') img_train = cv2.cvtC ......

实验一 密码引擎-1-OpenEuler-OpenSSL编译

实验一 密码引擎-1-OpenEuler-OpenSSL编译 0. 安装Ubuntu和OpenEuler虚拟机 1. 下载最新的OpenSSL源码(1.1版本) 2. 用自己的8位学号建立一个文件夹,cd 你的学号,用pwd获得绝对路径 3. 参考https://www.cnblogs.com/ro ......

在windows上安装编译OpenSSL

一、下载Openssl 链接:https://oomake.com/download/openssl 二、链接库与头文件 1、为Openssl链接静态库 地址:Project->Build Options->Debug->Linker settings->Add 自己openssl安装目录下/lib ......
windows OpenSSL