摘要: 一开始都无法理解SELF是啥意思,昨晚睡觉的时候不停在幻想,到底这是啥东西呢。翻了下大脑JAVA中的构造器的代码,突然之间领悟了。SELF就好比是JAVA中的THIS。一瞬间就理解了。#coding=utf-8class test: def __init__(self,name,password): self.name=name self.password=password def sayhi(self): print "hello:",self.name,"password:",self.passw... 阅读全文
posted @ 2013-06-23 14:05 墨迹哥's 阅读(436) 评论(0) 推荐(0)
摘要: 今天在看网页抓取,复习下JAVA,刚好没事情。package web.Catch;import java.io.BufferedReader;import java.io.InputStreamReader;import java.net.HttpURLConnection;import java.net.URL;public class Test { public static void main(String[] args) throws Exception { String strURL = "http://ip.chinaz.com/?IP=127.0.0.1"; 阅读全文
posted @ 2013-06-23 00:13 墨迹哥's 阅读(348) 评论(0) 推荐(0)