码迷,mamicode.com
首页 >  
搜索关键字:numbers range    ( 16974个结果
ShaderLab和CG/HLSL的一些数据类型归纳(转)
1、ShaderLab和CG变量的匹配关系 ShaderLab属性类型 CG变量类型 Color, Vector float4, half4, fixed4 Range, Float float, half, fixed 2D sampler2D Cube samplerCube 3D sample ...
分类:其他好文   时间:2020-07-04 01:01:17    阅读次数:115
Python之第二十七天的努力--pickle、hashlib模块
01 pickle模块:一次性写入,一次性读取 序列化 ''' pickle: 将Python中所有的数据类型。转换成字节串,序列化过程 将字节串转换成Python中数据类型,反序列化过程。 ''' import pickle # 所有的数据类型都可以进行序列化 # bys = pickle.dum ...
分类:编程语言   时间:2020-07-03 22:59:22    阅读次数:58
167. Two Sum II - Input array is sorted
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function ...
分类:其他好文   时间:2020-07-03 21:49:23    阅读次数:77
python--格式化输出,for循环,range
格式化输出 %s: 字符串的占位符, 可以放置任何内容(数字) %d: 数字的占位符 name = "zouzou" print("%s活了人生的%%2" % name) # 如果字符串中有了占位符. 那么后面的所有的%都是占位. 需要转义,用%转义 print("邹邹活了人生的%5") # 这句话 ...
分类:编程语言   时间:2020-07-03 21:15:17    阅读次数:82
第七章第三题(计算数字的出现次数)(Count occurrence of numbers) - 编程练习题答案
编写程序,读取在1到100 之间的整数,然后计算每个数出现的次数。假定输入是以0 结束的。 下面是这个程序的一个运行示例: Write a program that reads the integers between 1and 100 and counts the occurrences of e ...
分类:其他好文   时间:2020-07-03 21:02:49    阅读次数:60
HTML 5中不同的新表单元素类型是什么?
HTML 5推出了10个重要的新的表单元素: Color. Date Datetime-local Email Time Url Range Telephone Number Search ...
分类:Web程序   时间:2020-07-03 19:42:07    阅读次数:64
python怎么提高计算速度
下面是python中的一个函数计算代码: loops=25000000 from math import* a=range(1,loops) def f(x): return 3*cos(x)+4*sin(x)**2 %timeit r=(f(x) for x in a) 效率: 1000000 l ...
分类:编程语言   时间:2020-07-03 19:21:16    阅读次数:70
[LeetCode] 120. Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the fo ...
分类:其他好文   时间:2020-07-03 15:34:00    阅读次数:55
[编程题] 数组中的重复数字
数组中的重复数字 题目描述 Java代码 、import java.util.*; public class Solution { // Parameters: // numbers: an array of integers // length: the length of array numbe ...
分类:编程语言   时间:2020-07-03 01:09:01    阅读次数:81
PTA 自测-4 Have Fun with Numbers
PTA 自测-4 Have Fun with Numbers 题目描述 Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplicati ...
分类:其他好文   时间:2020-07-02 23:22:19    阅读次数:111
16974条   上一页 1 ... 55 56 57 58 59 ... 1698 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!