上一页 1 ··· 3 4 5 6 7 8 下一页
  2017年3月25日
摘要: package TreeView; import java.awt.*;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent; import javax.swing.ImageIcon;import javax.s 阅读全文
posted @ 2017-03-25 09:28 ALT_LB 阅读(2422) 评论(0) 推荐(0)
  2017年3月22日
摘要: 产生15以内的随机数 第一种方式: Random random=new Random(); int n=random.nextInt(15); System.out.println(n) 第二种方式: int m=(int)(Math.random()*15); System.out.println 阅读全文
posted @ 2017-03-22 08:35 ALT_LB 阅读(181) 评论(0) 推荐(0)
摘要: public class test { public static void main(String[] args) { List<Integer> list = new ArrayList<Integer>(); Random random=new Random(); for (int i = 0 阅读全文
posted @ 2017-03-22 08:27 ALT_LB 阅读(1934) 评论(0) 推荐(0)
摘要: 代码结果: 阅读全文
posted @ 2017-03-22 08:14 ALT_LB 阅读(196) 评论(0) 推荐(0)
  2017年3月21日
摘要: windows 32: 1.安装Python(我安装的是Python2.7,目录C:\Python27) 可以到CSDN、OSChina、Sina Share等网站下载 也可以到Python官网下载:http://www.python.org/ 2.安装NumPy(可选) 到这里下载:http:// 阅读全文
posted @ 2017-03-21 14:52 ALT_LB 阅读(597) 评论(0) 推荐(0)
  2017年3月16日
摘要: String url="http://list.youku.com/category/show/c_96_g_%E5%8A%A8%E4%BD%9C_s_1_d_1.html?spm=a2hmv.20009921.m_86982.5~5~5!3~1~3!4~A";//网址 Connection con 阅读全文
posted @ 2017-03-16 09:23 ALT_LB 阅读(640) 评论(0) 推荐(0)
  2017年3月13日
摘要: import java.util.StringTokenizer; StringTokenizer s = new StringTokenizer("hello world welcome to Chian!"); System.out.println("Total tokens : " + s.c 阅读全文
posted @ 2017-03-13 18:37 ALT_LB 阅读(1639) 评论(0) 推荐(0)
  2017年3月9日
摘要: # coding=utf-8 //没有这一行会报错a = input("请输入一个数字") //键盘输入一个字符串c = int(a) //字符转换为整型if c > 10: print celse: print (-c) 阅读全文
posted @ 2017-03-09 10:50 ALT_LB 阅读(161) 评论(0) 推荐(0)
  2017年2月22日
摘要: path='C:/'+name+'.txt' message='Hello world!' file = open(path,'w')其中'w'参数表示为写入模式,意思是:如果没有就在该路径创建一个有该名称文本,有则追加覆盖文本内容;file.write(message) 阅读全文
posted @ 2017-02-22 10:55 ALT_LB 阅读(3087) 评论(0) 推荐(0)
  2017年2月20日
摘要: python27 在做数据分析与挖掘时,win32 下Numpy,SciPy,Matplotlib插件 其共享连接为 链接: https://pan.baidu.com/s/1kUAhKNX 密码: ewq4 阅读全文
posted @ 2017-02-20 17:04 ALT_LB 阅读(159) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页