码迷,mamicode.com
首页 >  
搜索关键字:NPU    ( 4242个结果
PAT 甲级 1145 Hashing - Average Search Time (25 分)(读不懂题,也没听说过平方探测法解决哈希冲突。。。感觉题目也有点问题)
1145 Hashing - Average Search Time (25 分) The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. ...
分类:其他好文   时间:2019-11-20 16:57:03    阅读次数:104
unity PC和移动端 摄像机围绕目标物体transform组件 旋转 缩放(改变相机position)
using UnityEngine;using System;using System.Collections; public class CameraController : MonoBehaviour { // Text m_debugTip; public bool canRotation_X ...
分类:移动开发   时间:2019-11-20 12:33:14    阅读次数:78
python异常处理
一、什么是异常在python中,错误触发的异常如下二、异常的种类在python中不同的异常可以用不同的类型(python中统一了类与类型,类型即类)去标识,一个异常标识一种错误。1 、常用异常AttributeError 试图访问一个对象没有的树形,比如foo.x,但是foo没有属性xIOError... ...
分类:编程语言   时间:2019-11-19 17:32:50    阅读次数:98
Java基础之使用Scanner类获取用户输入
创建 Scanner 对象的基本语法: Scanner s = new Scanner(System.in); Scanner 类的 next() 方法 import java.util.Scanner; class Test{ public static void main(String[] ar ...
分类:编程语言   时间:2019-11-19 17:28:00    阅读次数:74
帆软报表批量导出到excel
由于项目及业务需要,有时候一个页面会有n张报表,那么这个时候就需要一键导出功能(方便省事) 首先项目肯定要集成帆软报表工具,帆软的各种jar包以及静态资源(js,css)等也会集成到项目里。 直接上代码,(主要有两个方法) function printReport(name, sex, age ){ ...
分类:其他好文   时间:2019-11-19 17:10:23    阅读次数:111
python输入文件并生成文件
def file_write(file_name): file_name = 'E:/私人资料/python/' + file_name f = open(file_name, 'w') print('请输入内容【单独输入\':w\'保存退出】:') while True: write_some = ...
分类:编程语言   时间:2019-11-19 17:02:51    阅读次数:84
1260. Shift 2D Grid
Given a 2D grid of size n * m and an integer k. You need to shift the grid k times. In one shift operation: Element at grid[i][j] becomes at grid[i][j ...
分类:其他好文   时间:2019-11-19 01:26:09    阅读次数:96
第十二天(都是理论)
第十二天(都是理论) 无参装饰器模板、有参装饰器模板 # 无参装饰器模板def wrapper(func): def inner(*args, **kwargs): res = func(*args, **kwargs) # 在被装饰对象调用后添加功能 return res return inner ...
分类:其他好文   时间:2019-11-18 20:41:06    阅读次数:100
php文件上传客户端限制和服务器端限制
客户端限制 1,通过表单隐藏域限制文件上传文件的最大值<input type='hidden' name='MAX_FILE_SIZE' VALUE='字节数' />通过accept属性限制上传文件类型<input type='file' name='myFile' accept='文件的MIME类 ...
分类:Web程序   时间:2019-11-18 18:09:19    阅读次数:83
python if not的用法
1. 结果: hahaha Process finished with exit code 0 2. 结果: hihihi Process finished with exit code 0 3. python中非空即为真,空即为假,因此也常用来判断变量是否为空 结果: 1 hihihi 2 hih ...
分类:编程语言   时间:2019-11-18 13:15:57    阅读次数:113
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!