最近在学scala语言,scala代码如下:
import scala.collection.JavaConversions._
object Solution {
def solution(A: Array[Int]): Int = {
// write your code in Scala 2.10
// sort
scala.uti...
分类:
其他好文 时间:
2014-05-07 04:20:38
阅读次数:
352
package com.annotation;import
java.lang.annotation.Retention;import java.lang.annotation.Target;import static
java.lang.annotation.ElementType.*;impor...
分类:
其他好文 时间:
2014-05-07 02:11:29
阅读次数:
211
请看下面的客户端代码:import
org.apache.axis2.client.Options;import
com.ctis.ta.service.impl.OpenAccountForUnitServiceStub;import
com.ctis.ta.service.impl.OpenAc...
分类:
其他好文 时间:
2014-05-07 01:43:55
阅读次数:
279
使用Java创建比较复杂的JSON对象,代码如下: 1 import
java.util.ArrayList; 2 import java.util.HashMap; 3 import java.util.List; 4 5
import net.sf.json.JSONArray; 6 impo....
分类:
编程语言 时间:
2014-05-07 01:41:20
阅读次数:
439
import urllib2
urllib2.quote("攻克平台")...
分类:
编程语言 时间:
2014-05-06 23:41:17
阅读次数:
341
Chef develops his own computer program for playing chess. He is at the very beginning. At first he needs to write the module that will receive moves written by the players and analyze it. The module w...
分类:
其他好文 时间:
2014-05-06 23:11:26
阅读次数:
497
1、模块的作用
在交互模式下输出的变量和函数定义,一旦终端重启后,这些定义就都不存在了,为了持久保存这些变量、函数等的定义,Python中引入了模块(Module)的概念。
一个Python模块其实就是一个脚本文件,具有后缀“.py”,例如 hello.py 就是一个模块文件名,和普通文件一样可以被永久保存在本地存储磁盘中。
2、模块的内容
Python...
分类:
编程语言 时间:
2014-05-06 23:00:21
阅读次数:
409
最近下了《中国式英语口语纠错》里面的文件都是“tingvoa.com_cnusa043.mp3”,MP3播放器不识别,
因此用python脚本写了一个rename的脚本
# -*- coding: utf-8 -*-
import os
def filerename(path):
for file in os.listdir(path):
#pr...
分类:
编程语言 时间:
2014-05-06 22:48:40
阅读次数:
423
import java.awt.*; import javax.swing.*; class
CalButtonPane extends JPanel { String[] keys = {"/","9","3","6","x","?","1",
"7","2",",","!","5","...
分类:
其他好文 时间:
2014-05-06 18:10:07
阅读次数:
258
今天用yum安装软件的时候出现如下错误:TherewasaproblemimportingoneofthePythonmodulesrequiredtorunyum.Theerrorleadingtothisproblemwas:NomodulenamedyumPleaseinstallapackagewhichprovidesthismodule,orverifythatthemoduleisinstalledcorrectly.It’spossiblethattheabo..
分类:
其他好文 时间:
2014-05-06 16:09:23
阅读次数:
297