摘要: 阅读全文
posted @ 2013-06-04 20:53 youJumpILook 阅读(98) 评论(0) 推荐(0) 编辑
摘要: from: http://husince.blog.163.com/blog/static/5705835920111165519859/Today I remounted the USB device and shared folder in the virtualbox ubuntu because the access authority of folders and files in USB device was not allowed to modify in default mount condition.Detail:ls -allthen displayed in consol 阅读全文
posted @ 2013-06-02 20:50 youJumpILook 阅读(235) 评论(0) 推荐(0) 编辑
摘要: from http://wiki.ubuntu.org.cn/UbuntuHelp:Mount/USBMount the Drive We can now mount the drive. Let's say the device is /dev/sdb1, the filesystem is FAT16 or FAT32 (like it is for most USB flash drives), and we want to mount it at /media/external (having already created the mount point):sudo moun 阅读全文
posted @ 2013-06-02 20:43 youJumpILook 阅读(380) 评论(0) 推荐(0) 编辑
摘要: class Bird: def __init__(self): self.eaten = False def eat(self): if(self.eaten == False): self.eaten = True print("Eating now") else: print("no,thinks") @staticmethod def fly(): print('''I believe I can fly, I bel... 阅读全文
posted @ 2013-05-30 00:24 youJumpILook 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 在python3.x中,exec已经变成函数,并且和eval的调用形式基本相同。1 """2 在利用exec执行动态密码时,为了安全期间,通过利用字典作为命名空间3 """4 from math import sqrt5 scope = {}6 exec "sqrt = 1" in scope #这一段在交互式解释器会返回False,应该为exec("sqrt = 1",scope)7 sqrt(4) #返回2.0因为之前的一句仅仅在自己的局部命名空间(scope)里执行, 阅读全文
posted @ 2013-05-30 00:00 youJumpILook 阅读(598) 评论(0) 推荐(0) 编辑
摘要: 这是关于vim的fileencodings,fileencoding,encoding的官方解释。'fileencodings' 'fencs' string (default: "ucs-bom", "ucs-bom,utf-8,default,latin1" when 'encoding' is set to a Unicode value) global {o... 阅读全文
posted @ 2013-05-27 03:11 youJumpILook 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1 import urllib.request 2 import re 3 url = "http://hq.sinajs.cn/list=sh600008" 4 #text = urllib.request.urlopen(url).read().decode("gbk").encode("utf8") 5 text = urllib.request.urlopen(url).read().decode("gbk") 6 text = str(text) 7 name = text[text.find(' 阅读全文
posted @ 2013-05-18 03:28 youJumpILook 阅读(158) 评论(0) 推荐(0) 编辑
摘要: from datetime import *import os,reimport urllib.requestNewHight = "http://money.finance.sina.com.cn/quotes_service/api/jsonp_v2.php/IO.XSRV2.CallbackList['GiekxxaLquWt9var']/StatisticsService.getNewHighList?page=1&num=50&sort=changes&asc=0&node=adr_hk"VolumeRiseCon 阅读全文
posted @ 2013-05-05 21:05 youJumpILook 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 实时股票数据获取方式from:http://www.cnblogs.com/blodfox777/archive/2009/02/10/1387229.html转自:股票数据的获取目前有如下两种方法可以获取:1.http/javascript接口取数据2.web-service接口1.http/javascript接口取数据1.1Sina股票数据接口以大秦铁路(股票代码:601006)为例,如果要获取它的最新行情,只需访问新浪的股票数据接口:http://hq.sinajs.cn/list=sh601006这个url会返回一串文本,例如:var hq_str_sh601006="大秦 阅读全文
posted @ 2013-05-03 21:24 youJumpILook 阅读(277) 评论(0) 推荐(0) 编辑
摘要: from:http://dev.10086.cn/cmdn/wiki/index.php?doc-view-6087.htmlandroid:shape的使用Android中常常使用shape来定义控件的一些显示属性,今天看了一些shape的使用,对shape有了大体的了解,稍作总结:先看下面的代码:复制到剪贴板XML/HTML代码<shape><!--实心--><solidandroid:color="#ff9d77"/><!--渐变--><gradientandroid:startColor="#ff8c0 阅读全文
posted @ 2013-04-30 22:57 youJumpILook 阅读(147) 评论(0) 推荐(1) 编辑