。。
又是11点回的寝室。
看来真的需要再买辆自行车了,买了谁都不借~这样该不会丢了。
今天事情进展不错,板子的PCB已经基本成型,现在可以着手写程序了。
话说我们组选的太有挑战性了,电力线载波通信(PLC),属于高频电路的范畴,所以无法用EDA来仿真。
这周可以去买芯片元件了,然后搭板子,烧程序,调试,交作品~
。。。软考和六级暂时是顾不上了,5.23 ,6.20
软考就安排10天复习,6级估计要裸考了。。
= = 有点玄乎。
发下顺手写的程序。。
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.Date;
public class BaiduSpc {
public static void main(String[] args) throws MalformedURLException {
String urlStr = new String("");
HttpURLConnection urlConnection = null;
StringBuffer strb = new StringBuffer();
strb.append(args[0]);
System.out.println("Running...Target Account:[" + args[0] + "]");
URL url = new URL(urlStr + strb.toString());
for (int i = 1; i > 0;) {
try {
urlConnection = (HttpURLConnection) url.openConnection();
InputStream in = urlConnection.getInputStream();
BufferedReader httpBufferedReader = new BufferedReader(
new InputStreamReader(in));
String line = httpBufferedReader.readLine();
Date date = new Date();
SimpleDateFormat from = new SimpleDateFormat(
"yyyy-MM-dd HH:mm:ss: ");
System.out.print(from.format(date));
System.out.println(line);
in.close();
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (urlConnection != null)
urlConnection.disconnect();
}
}
}
有兴趣的就看看我干了什么坏事吧。。