摘要: https://docs.oracle.com/javase/tutorial/java/data/numberformat.htmlFormatting Numeric Print OutputEarlier you saw the use of theprintandprintlnmethods... 阅读全文
posted @ 2015-10-21 22:45 快乐的小土狗 阅读(549) 评论(0) 推荐(0)
摘要: package com.example.helloworld;/** * Created by carl on 10/21/15. */public class StringChecker { public static void main(String[] arguments) { ... 阅读全文
posted @ 2015-10-21 21:37 快乐的小土狗 阅读(137) 评论(0) 推荐(0)
摘要: StringTokenizer类别可以通过某个字符或者多个字符作为分界符,来将字符串划分为多个标记(token)。package com.example.helloworld;import java.util.StringTokenizer;/** * Created by carl on 10/2... 阅读全文
posted @ 2015-10-21 21:02 快乐的小土狗 阅读(167) 评论(0) 推荐(0)
摘要: 1 os.system 可以返回运行shell命令状态,同时会在终端输出运行结果 例如 ipython中运行如下命令,返回运行状态status 2 os.popen() 可以返回运行结果 运行返回结果 3 如何同时返回结果和运行状态,commands模块: commands示例如下: 4 使用模块s 阅读全文
posted @ 2015-10-21 15:28 快乐的小土狗 阅读(31013) 评论(0) 推荐(0)