码迷,mamicode.com
首页 >  
搜索关键字:import tkinter的时候报错    ( 67912个结果
numpy模块
#numpy模块学习 ###前言 Numpy库支持高级大量的维度数组与矩阵运算,Numpy同时也对数组运算提供大量的数学函数,对于大量计算运行效率极好,是大量机器学习框架的基础库 ###常用属性与方法 >>> import numpy as np # 生成行向向量 >>> A = np.array( ...
分类:其他好文   时间:2021-06-08 23:42:33    阅读次数:0
Java开发通用小工具(视情况不定时更新)
备注:此工具类需要JDK8+环境 1 package com.common.util; 2 3 import java.nio.charset.StandardCharsets; 4 import java.security.MessageDigest; 5 import java.security ...
分类:编程语言   时间:2021-06-08 23:30:55    阅读次数:0
Python:获取某一月的天数
import calendar >>> calendar.monthrange(2010,10)[1] 31 >>> calendar.monthrange(2020,3) (6, 31) calendar.monthrange( year , month ) 返回一个tuple,第一个元素是这个月 ...
分类:编程语言   时间:2021-06-08 23:21:11    阅读次数:0
多进程的调用(multiprocessing.Process)
import multiprocessing, time, os# def pro(name):# print('hello', name, time.ctime())## if __name__ == '__main__':# l = []# for t in range(4):# t = mul ...
分类:系统相关   时间:2021-06-08 23:20:39    阅读次数:0
turtle应用
import turtle from random import * from math import * turtle.seth(90) def tree(n,l): turtle.down() turtle.pencolor('#410200') turtle.pensize(n*3) turt ...
分类:其他好文   时间:2021-06-08 23:16:21    阅读次数:0
特殊装饰器
before_request、after_requestfrom flask import Flask,render_template,redirect app = Flask(__name__) """ before_reuqest = [xxxxxxxxxx1,xxxxxxxxxx2] """ ...
分类:其他好文   时间:2021-06-08 23:12:09    阅读次数:0
Python
soup = BeautifulSoup(html,"html.parser")# -- coding: utf-8 -- """ Created on Tue Jun 8 09:55:53 2021 @author: Administrator """ from bs4 import Beauti ...
分类:编程语言   时间:2021-06-08 23:05:26    阅读次数:0
快速排序(quicksort)犯过的错误
我非常惭愧, 学计算机也好几年了, 居然现在还不会写快排, 可见我水平有多低下(而且现在我也就刚学会递归版, 不会迭代版). 而且我感觉这个非常容易写错. 所以我估计这篇文章我可能会不断更新. import random def quicksort(a,lo,hi): if(lo==hi): ret ...
分类:编程语言   时间:2021-06-08 22:52:01    阅读次数:0
wps转office
PermissionError: [Errno 13] Permission denied:字段里不能有空格 执行文件 from docxtpl import DocxTemplatefrom datetime import datetimeimport timeimport datetimeimp ...
分类:其他好文   时间:2021-06-08 22:49:54    阅读次数:0
对函数部分或全部参数进行类型检查
对函数部分或全部参数进行类型检查 构建一个装饰器,通过对装饰器中传入类型参数,来对装饰的函数的对应参数进行类型检查。 from inspect import signaturefrom functools import wraps?def typeassert(*tyargs,**tykwargs) ...
分类:其他好文   时间:2021-06-08 22:38:44    阅读次数:0
67912条   上一页 1 ... 25 26 27 28 29 ... 6792 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!