课程:《Python程序设计》班级: 2022姓名: 刘明善学号:20202220实验教师:王志强实验日期:2021年5月5日必修/选修: 公选课## 1.实验内容编写一个功能尽可能强大的计算器## 2. 实验过程及结果编写了一个能进行加减乘除 、整除、求余、a的b次方 ,六大三角函数、多个数累加、 ...
分类:
编程语言 时间:
2021-05-24 03:49:28
阅读次数:
0
写了个每日一报的python脚本,但是每天还是要手动点击程序,如果电脑能够自动帮我再规定时间运行程序就好了,研究了一下,linux就有这个命令 在服务器上使用命令 `crontab -e` 在里面添加 就会在每天的0点执行命令。 具体关于crontab的用法可以自行搜索 ...
分类:
编程语言 时间:
2021-05-24 03:14:42
阅读次数:
0
发现网上大把都是用python读取mnist的,用C++大都是用opencv读取的,但我不怎么用opencv,因此自己摸索了个使用文件流读取mnist的方法,armadillo仅作为储存矩阵的一种方式。 1. mnist文件 首先避坑,这些文件要解压。 官网截图可知,文件头很简单,只有若干个32位整 ...
分类:
编程语言 时间:
2021-05-24 03:14:16
阅读次数:
0
```python class Human: def __init__(self, name, age): self.__name = name self.__age = age @property def age(self): return self.__age @age.setter def a ...
分类:
编程语言 时间:
2021-05-24 03:06:24
阅读次数:
0
直接上代码吧 中间件简单使用: # -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/lat ...
分类:
其他好文 时间:
2021-05-24 03:01:58
阅读次数:
0
示例 # pip install aiohttp import asyncio import aiohttp headers = { "Referer": "https://vod.bunediy.com", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; ...
分类:
编程语言 时间:
2021-05-24 02:57:18
阅读次数:
0
一、遍历文件夹代码如下,大家可以根据自己的路径进行修改import osfor dirpath, dirnames, filenames in os.walk(r'C:\\Program Files (x86)'):print(f'打开文件夹{dirpath}') # 当前文件夹路径 if dirn ...
分类:
编程语言 时间:
2021-05-24 02:56:20
阅读次数:
0
import asyncio import time async def say_after(delay, what): """使用 async 声明函数""" await asyncio.sleep(delay) print(what) async def main(): # 一个一个执行 pri ...
分类:
编程语言 时间:
2021-05-24 02:55:21
阅读次数:
0
文档: https://www.pycryptodome.org/en/latest/ # pip install pycryptodome from Crypto.Cipher import AES import base64 class Encrypt: def __init__(self, k ...
分类:
编程语言 时间:
2021-05-24 02:53:36
阅读次数:
0
代码(仅限用于学习交流,未经允许不得用于商业获取非法利益): import requests from bs4 import BeautifulSoup import time import csv def get_url(start_num,end_num): url_list = [] #建立一 ...
分类:
其他好文 时间:
2021-05-24 02:50:08
阅读次数:
0