码迷,mamicode.com
首页 >  
搜索关键字:pri    ( 1072个结果
java之yield(),sleep(),wait()区别详解-备忘笔记(转)
1、sleep() 使当前线程(即调用该方法的线程)暂停执行一段时间,让其他线程有机会继续执行,但它并不释放对象锁。也就是说如果有synchronized同步快,其他线程仍然不能访问共享数据。注意该方法要捕捉异常。 例如有两个线程同时执行(没有synchronized)一个线程优先级为MAX_PRI ...
分类:编程语言   时间:2017-08-15 10:07:05    阅读次数:186
Python之字符串基本操作
#!/usr/bin/env python#-*-coding utf8-*-#Author:caojininfo = { 'stu1001': 'caojin', 'stu1002': 'zhaoming', 'stu1003': 'zhansan', 'stu1004': 'lisi',}pri ...
分类:编程语言   时间:2017-08-11 23:07:35    阅读次数:234
【模板】一坨数学算法
求GCD 线性筛求[1,n]的质数 1 bool isprime[1000]; 2 int prime[100],tot; 3 void pri(int n) 4 { 5 tot = 0; 6 memset(isprime,true,sizeof(isprime)); 7 int i,j; 8 fo ...
分类:编程语言   时间:2017-08-10 10:27:37    阅读次数:197
Intellij IDEA15: 带着参数 运行
package main.scala /** * Created by silentwolf on 2016/5/24. */ object FileIO { def main(args: Array[String]) { if (args.length != 2) { System.err.pri... ...
分类:其他好文   时间:2017-08-07 10:05:52    阅读次数:137
Qt 之 qwt 和 qwtpolar
1 qwt 1.1 下载 qwt-6.1.3 版本下载地址: https://sourceforge.net/projects/qwt/files/qwt/ 1.2 解压 解压到 Qt 的安装目录下,D:\Qt\qwt-6.1.3,更改 qwtconfig.pri 中的 #27 注释掉 qwtbui ...
分类:其他好文   时间:2017-08-03 18:08:18    阅读次数:296
使用BigDecimal进行精确运算
使用BigDecimal进行精确运算 首先我们先来看如下代码示例: 1 public class Test_1 { 2 public static void main(String[] args) { 3 System.out.println(0.06+0.01); 4 System.out.pri ...
分类:其他好文   时间:2017-08-03 17:42:08    阅读次数:129
2017-07-28 (多线程)
public class duoxcl extends Thread{ //继承Thread 类 String name; duoxcl(String name){ //有参的构造方法 this.name=name; } public void run(){ //写方法 System.out.pri ...
分类:编程语言   时间:2017-08-01 20:38:32    阅读次数:121
1.1数据类型 (string)
字符串创建 创建字符串,只需给变量分配一个值即可。例如: first_str = “hello world!!!” second_str = “hello python!!!” 字符串访问 访问子字符串,可以用方括号来截取字符串。例如: first_str = "hello world!!!"pri ...
分类:其他好文   时间:2017-07-31 15:46:46    阅读次数:164
剑指offer---尾到头打印链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : * val(x), next(NULL) { * } * }; */ class Solution { public: vector pri... ...
分类:其他好文   时间:2017-07-30 23:41:20    阅读次数:173
leetcode 264: Ugly Number II
Ugly Number II Total Accepted: 2920 Total Submissions: 15174 Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose pri ...
分类:其他好文   时间:2017-07-27 20:20:37    阅读次数:164
1072条   上一页 1 ... 43 44 45 46 47 ... 108 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!