码迷,mamicode.com
首页 >  
搜索关键字:lower    ( 3122个结果
【转】JS字符(字母)与ASCII码转换方法
var strVariable; for(var i=0;i<25;i++) { console.log(String.fromCharCode((65+i))); } strVariable.toUpperCase( ); //转大写 strVariable.toLowerCase( ); //转 ...
分类:Web程序   时间:2020-02-06 11:04:57    阅读次数:218
Python matplotlib 基础练习:画出正弦曲线等
初学者,练习以下片段: 代码1:用 一元一次函数 画直线 import matplotlib.pyplot as plt import numpy as np x = np.linspace(-2, 2, 50) print(x) y = 2*x + 1 plt.plot(x, y) ax = pl ...
分类:编程语言   时间:2020-02-05 20:23:37    阅读次数:228
关于最长单调不升子序列和最长单调上升子序列写法
本人巨懒就用了STL lower_bound会找出序列中第一个大于等于x的数 upper_bound会找出序列中第一个大于x的数 对于N个数求最长单调不上升子序列,使用一个数组f[]存下 然后使用一个栈dq,存储不上升序列 把f中的每个元素挨个加到d里面 如果a[i] > d[len],在dq中找到 ...
分类:其他好文   时间:2020-02-04 09:11:39    阅读次数:101
LeetCode 374. Guess Number Higher or Lower
374. Guess Number Higher or Lower(猜数字大小) 链接 https://leetcode cn.com/problems/guess number higher or lower 题目 我们正在玩一个猜数字游戏。 游戏规则如下: 我从?1?到?n?选择一个数字。 你需 ...
分类:其他好文   时间:2020-02-03 20:57:25    阅读次数:70
学习python的第三天
用python实现词频统计时比较简单,但是需要区分是英文文本还是中文文本,两种不同的文本用到的方法稍微有点区别。 对英文文本进行统计: def getText(): txt = open("word.txt", "r").read() txt = txt.lower() for ch in '`~! ...
分类:编程语言   时间:2020-02-03 15:22:32    阅读次数:64
输出华氏-摄氏温度转换表
https://pintia.cn/problem-sets/13/problems/408 1 #include <stdio.h> 2 int main(void) 3 { 4 int lower, upper; 5 int fahr; 6 double celsius; 7 8 scanf(" ...
分类:其他好文   时间:2020-02-02 21:50:18    阅读次数:76
使用C语言为python编写动态模块(1)--从底层深度解析python中的对象以及变量
楔子 我们知道可以通过使用C语言编写动态链接库的方式来给python加速,但是方式是通过ctypes来加载,通过类CDLL将动态链接库加载进来得到一个对象之后,通过这个对象来调用动态链接库里面的函数。那么问题来了,我们可不可以使用C语言为python编写模块呢?然后在使用的时候不使用ctypes加载 ...
分类:编程语言   时间:2020-02-01 10:54:51    阅读次数:75
css字体样式+文本样式
font-family属性值:具体字体名或者字体集 如果是中文或者有单词之间有空格,需要加双引号 字体集: Serif (有装饰线) Sans-serif (无装饰线) Monospace Cursive Fantasy <!DOCTYPE html> <html lang="en"> <head> ...
分类:Web程序   时间:2020-01-31 14:00:36    阅读次数:105
jumpserver2
测试环境 CPU: 64位双核处理器 内存: 4G DDR3 数据库:mysql 版本大于等于 5.6 mariadb 版本大于等于 5.5.6 环境 系统: CentOS 7 IP: 192.168.244.144 设置 selinux 和防火墙 $ firewall-cmd --zone=pub ...
分类:其他好文   时间:2020-01-30 15:47:45    阅读次数:108
STL-set&&multiset 集合
1 #include <iostream> 2 #include <cstdio> 3 #include <set> 4 5 // 仿函数的原型 6 //struct greaters 7 //{ 8 // bool operator()(const int &left,const int &rig ...
分类:其他好文   时间:2020-01-30 12:56:05    阅读次数:74
3122条   上一页 1 ... 28 29 30 31 32 ... 313 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!