摘要:        
原文:http://blog.sina.com.cn/s/blog_46fb85920100mi1m.html貌似有很多方法,先记了再说...1.限制输入数字用法 textfield.setDocument(new IntegerDocument());class IntegerDocument extends PlainDocument{public void insertString(int offset, String s,AttributeSet attributeSet) throws BadLocationException{try{Integer.parseInt(s);}cat    阅读全文
        
            posted @ 2012-11-28 23:23
Leo Forest
阅读(499)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
#!/usr/bin/pythonimport sys, osdef main(): """ A demo deamon main routine, write a datestamp to /tmp/deamon-log every 10 seconds. """ import time f = open("/tmp/deamon-log", "w") while True: f.write('%s\n' % time.ctime(time.time())) f.flush()    阅读全文
        
            posted @ 2012-11-28 20:18
Leo Forest
阅读(210)
评论(0)
推荐(0)
        
        
 
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号