码迷,mamicode.com
首页 > 编程语言
JAVA学习 判断一个字符或字符是否位于另一个字符串的末尾
String a ="abcdefbg";Scanner scan = new Scanner(System.in); //输入扫描器String b = scan.next(); //输入字符int c = a.lastIndexOf(b); //判断输入的字符串在需要判断的字符串中的位置int ...
分类:编程语言   时间:2016-05-14 08:59:05    阅读次数:169
Java基本类型和引用类型
8种基本类型 一、4种整型 byte 1字节 -128——127 short 2 字节 -32,768 —— 32,767 int 4 字节 -2,147,483,648 ——2,147,483,647(超过20亿) long 8 字节 -9,223,372,036,854,775,808——9,2 ...
分类:编程语言   时间:2016-05-14 08:59:06    阅读次数:218
哗啦啦Python之路 - Day 1
金融专业出身的人,产生学Python的想法是源于看到通联网络上分享的量化分析师之路。 矿工一直是我的梦想,然而从,c++什么的上手有点难,仿佛想借把锄头挖矿结果从造锄头开始学。相对而言,简单易读易上手的python自然成了不二之选。 于是开始了我的Python之路。 Day 1 第一天,自然是从py ...
分类:编程语言   时间:2016-05-14 07:56:07    阅读次数:169
python 基础
1.查看内置函数 >>> dir(__builtins__) 2.查看内置函数帮助 >>> help(input) help查看 3. 以上操作在Python shell 中运行! ...
分类:编程语言   时间:2016-05-14 07:54:56    阅读次数:201
POJ 1001 Exponentiation(大数幂,还是Java大发好!需调用多个方法)
Exponentiation Time Limit: 500MS   Memory Limit: 10000K Total Submissions: 156303   Accepted: 38063 Description Problems involving the computation of exact values of very...
分类:编程语言   时间:2016-05-14 06:50:30    阅读次数:277
python之初级学习
一.python安装 1.下载安装包(本人使用python3.5.1) https://www.python.org/downloads/ 2.安装python-3.5.1.exe 本人下载的是python-3.5.1-embed-amd64.zip绿色版,解压直接就能打开python-3.5.1. ...
分类:编程语言   时间:2016-05-14 06:48:43    阅读次数:197
[Javascript] Advanced Console Log Arguments
Get more mileage from your console output by going beyond mere string logging - log entire introspectable objects, log multiple items in one call, and ...
分类:编程语言   时间:2016-05-14 06:45:36    阅读次数:225
Atitit.  Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Atitit. Exception in thread "main" java.lang.Error: Unresolved compilation problem: 1.1. 产看是否产生class文件,以及class体积大小1 1.2. 观察ide源文件,左边有个红叉叉。1 1.3. Resin ...
分类:编程语言   时间:2016-05-14 06:46:15    阅读次数:349
Python之路【第一篇】:Python基础(5)
python 3.2.3及以下版本没有自带tab补全,python 3.5.1自带tab补全模块。 #!/usr/bin/env python # python startup file import sys import readline import rlcompleter import ate ...
分类:编程语言   时间:2016-05-14 06:44:00    阅读次数:249
Python之路【第一篇】:Python基础(4)
import os [root@localhost ~]# python3 Python 3.5.1 (default, May 12 2016, 00:36:44) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux Type "help", "copy ...
分类:编程语言   时间:2016-05-14 06:42:28    阅读次数:245
Python之路【第一篇】:Python基础(3)
import getpass [root@localhost ~]# cat test_getpass.py import getpass username = input("username:") password = getpass.getpass("password:") print(user ...
分类:编程语言   时间:2016-05-14 06:43:46    阅读次数:237
Python之路【第一篇】:Python基础(2)
input和 raw_input python 3.5里面 input输入不论输入的是数字还是字符串, 都被默认为是字符串,如果要输入数字需要将字符串转换成数字,使用int方法。 python 2.7 里面用input输入字符串默认认为输入的是变量,然后会去找这个变量,找不到然后会报错,输入数字py ...
分类:编程语言   时间:2016-05-14 06:41:46    阅读次数:214
Python学习day01
一:Python3.x和Python2.x的区别 1. Py3.X源码文件默认使用utf-8编码 2. 去除了,全部改用!= 3. 整型除法返回浮点数,要得到整型结果,请使用// 4. 去除print语句,加入print()函数实现相同的功能 5. 新的字符串格式化方法format取代% 6. 3.... ...
分类:编程语言   时间:2016-05-14 06:42:31    阅读次数:205
Python之路【第一篇】:Python基础(6)
条件判断if else语法规则 如果 if 语句判断为 True,就会执行它下面的子代码(下层缩进代码 )。、 否则的话,就执行 el se 下面的子代码。 当然后面的 el se 也不是必须要加的,如果不加 el se 的话,那 if 条件判断为 Fa l se 的话,那它就什么也不做。 and与 ...
分类:编程语言   时间:2016-05-14 06:42:21    阅读次数:250
[Javascript] Log Levels and Semantic Methods
Go beyond console.log by learning about log levels, filtering log output and structuring your output to be meaningful and concise. The JavaScript cons ...
分类:编程语言   时间:2016-05-14 06:42:41    阅读次数:162
冒泡排序及折半查找
冒泡排序: 两层循环 1.外层循环:循环趟数 n-1; 2.内层循环:两两比较的次数 n-2; int[] shuzu = new int[10]{1,9,5,6,2,3,4,7,8,10 }; for (int i = 0; i < shuzu.length; i++) { for (int j ...
分类:编程语言   时间:2016-05-14 06:37:16    阅读次数:190
Python基础
windows:1、下载安装包https://www.python.org/downloads/2、安装默认安装路径:C:\python273、配置环境变量【右键计算机】--》【属性】--》【高级系统设置】--》【高级】--》【环境变量】--》【在第二个内容框中找到 变量名为Path 的一行,双击】 ...
分类:编程语言   时间:2016-05-14 06:37:48    阅读次数:173
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!