摘要: 列表 shoplist = ['apple','mango','carrot','banana'] 可修改元组 不可修改print '%s is %d years old' %(name, year)字典d = {key1 : value1, key2 : value2 } 阅读全文
posted @ 2013-11-29 16:36 leegooy 阅读(148) 评论(0) 推荐(0) 编辑
摘要: class RunnableImpl implements Runnable{ public void run(){ for (int i = 0;i " + i); } }}View Codeclass Test{ public static void main(String [] args){ RunnableImpl ri = new RunnableImpl(); Thread t = new Thread(ri); t.start(); for (int i = 0; i " + i); } }} 阅读全文
posted @ 2013-11-29 14:04 leegooy 阅读(198) 评论(0) 推荐(0) 编辑