python的强大,python的优雅,python的简介...
分类:
编程语言 时间:
2014-06-04 21:56:21
阅读次数:
264
问题
输入:一个表示数字的字符串,需要考虑不同的输入形式。
输出:对应的整数
特殊输入形式:
1.输入开始几个字符为空格
2.考虑正负号
3.数字字符不属于[0,9]时,输出当前结果
4.字符串代表的数字大于INT_MAX或者小于INT_MIN时输出INT_MAX或者INT_MIN。
class Solution {
// out of range...
分类:
其他好文 时间:
2014-06-03 06:30:14
阅读次数:
314
1 如何将字串 String 转换成整数 int?
A. 有两个方法:
1). int i = Integer.parseInt([String]); 或
i = Integer.parseInt([String],[int radix]);
2). int i = Integer.valueOf(my_str).intValue();
注: 字串转成 Double, Float, Lo...
分类:
编程语言 时间:
2014-06-03 04:43:07
阅读次数:
297
作为一个Python初学者,会遇到的一些问题...
分类:
编程语言 时间:
2014-05-31 21:51:43
阅读次数:
387
错误1 ——
Caused by: android.content.res.Resources$NotFoundException:
String resource ID #0x0
错误原因——...
分类:
移动开发 时间:
2014-05-31 21:39:18
阅读次数:
642
1、jsp生成word文件,直接修改jsp格式:
<%
String fileName ="word.doc";
byte[] bt =fileName.getBytes("GB2312");
String unicoStr = new String(bt, "ISO-8859-1");
response.setHeader("...
分类:
Web程序 时间:
2014-05-31 17:52:38
阅读次数:
235
题意:给你一些二进制的数,然后你可以选择按位取反,也可以不变,你只能选择一种,然后让你找出最大和最小,求最大的差值
思路:将取反与不取反都算出来,然后大的放一边,小的放一边,排序后判断#include
#include
#include
#include
#define ll long long
using namespace std;
const int MAXN = 100010;
...
分类:
移动开发 时间:
2014-05-31 17:44:07
阅读次数:
321
yum命令升级的时候,报出这个错误。There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides t...
分类:
编程语言 时间:
2014-05-31 17:42:52
阅读次数:
453
package com.sondon.dhjk.test;
import com.sondon.dhjk.utils.LogUtil;
import junit.framework.TestCase;
public class Test extends TestCase {
private static final String TAG = "Test";
/**
* 构造函数
...
分类:
移动开发 时间:
2014-05-31 17:34:48
阅读次数:
251