摘要: 1 class stack(object): 2 def __init__(self): 3 self.items=[] 4 5 def is_empty(self): 6 if len(self.items)>0: 7 return False 8 return True 9 10 ... 阅读全文
posted @ 2019-05-06 16:15 竹心_兰君 阅读(149) 评论(0) 推荐(0) 编辑
摘要: class singlenode(object): def __init__(self,item): self.item=item self.next=None 1 class singlink(object): 2 def __init__(self): 3 self.head=None 4 5 def i... 阅读全文
posted @ 2019-05-06 15:49 竹心_兰君 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 1) 修改hadoop-env.sh 2) 修改core-site.xml 3) 修改hdfs-site.xml 阅读全文
posted @ 2019-04-30 14:30 竹心_兰君 阅读(125) 评论(0) 推荐(0) 编辑
摘要: package lastt; public class last { String name;int age; public last(String name,int age) { this.name =name; this.age=age; } public static void main(String []ar... 阅读全文
posted @ 2019-04-29 16:17 竹心_兰君 阅读(97) 评论(0) 推荐(0) 编辑
摘要: package ord; import java.util.ArrayList; public class order { public String orderid; public user user; public ArrayList pdls; public float ordernum; public float ordmon; pub... 阅读全文
posted @ 2019-04-29 16:06 竹心_兰君 阅读(799) 评论(0) 推荐(0) 编辑
摘要: package guss; import java.util.Scanner; public class gussnum { String myin; int y; public int gussnum() { Scanner mysc=new Scanner(System.in); String myin=mysc.nextLine(); int y=Integer.parseInt(myi... 阅读全文
posted @ 2019-04-29 08:28 竹心_兰君 阅读(139) 评论(0) 推荐(0) 编辑
摘要: package arr; public class arr4 { public static void main(String []args) { int []myarr = new int[5]; myarr[0]=2; myarr[1]=8; myarr[2]=1; myarr[3]=5; myarr[4]=4; int tmp=myarr[0]; for(int j=0;jmyarr[... 阅读全文
posted @ 2019-04-29 08:13 竹心_兰君 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 目录: 阅读全文
posted @ 2019-04-26 11:41 竹心_兰君 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 基于多线程的木头人游戏,等待时间随机 阅读全文
posted @ 2019-04-25 13:03 竹心_兰君 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1 public class arr{ 2 int []arr; 3 public arr(int a) { 4 this.arr = new int[10]; 5 for(int x= 0;x<a;x++) { 6 arr[x]=x+2; 7 } 8 } 9 10 ... 阅读全文
posted @ 2019-04-24 17:05 竹心_兰君 阅读(94) 评论(0) 推荐(0) 编辑