上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页
摘要: 歌词 HotelCalifornia(TheEagles) Onadarkdeserthighway,coolwindinmyhair Warmsmellofcolitas,risingupthroughtheair Upaheadinthedistance,Isawashimmeringlight Myheadgrewheavyandmysightgrewdim Ihadtostopforthenight Thereshestoodinthedoorway; Iheardthemissionbell AndIwasthinkingtomyself, 'Thiscouldb... 阅读全文
posted @ 2012-09-02 13:50 苍术厚朴 阅读(211) 评论(0) 推荐(0) 编辑
摘要: When I said go I never meant away 当我说离开时我从不打算离开 You ought to know the freaky games we play 你应该知道我们玩的任性游戏 Could you forgive and learn how to forget 你可以原谅而且学习该如何忘记吗 Hear me as I'm calling out your name 听到我呼唤你名字的时候 Firefly come back to me 萤火虫飞回我身边 Make the night as bright as day 使夜晚像白天一样明亮... 阅读全文
posted @ 2012-09-02 13:43 苍术厚朴 阅读(250) 评论(0) 推荐(0) 编辑
摘要: It's amazing how you can speak right to my heart你和我心有灵犀让我惊喜, Without saying a word不用说任何话, You can light up the dark你就能照亮这夜空。 Try as I may I could never explain我竭尽全力也无法解释, What I hear when you don't say a thing当你沉默无语时我听见了什么。 The smile on your face你脸上的笑容 Lets me know that you need me让我知道你需要我,  阅读全文
posted @ 2012-09-02 13:39 苍术厚朴 阅读(201) 评论(0) 推荐(0) 编辑
摘要: For all those times you stood by me 为了无数次你的支持, For all the truth that you made me see 为了所有你让我明白的真理, For all the joy you brought to my life 为了你带给我的无穷欢乐, For all the wrong that you made right 为了你更正的所有错误, For every dream you made come true 为了你使之成真的每一个梦想, For all the love I found in you 为了你给我的全部的... 阅读全文
posted @ 2012-09-02 13:29 苍术厚朴 阅读(175) 评论(0) 推荐(0) 编辑
摘要: When I am down and, oh my soul, so weary; When troubles come and my heart burdened be; Then, I am still and wait here in the silence, Until you come and sit awhile with me. You raise me up, so I can stand on mountains; You raise me up, to walk on stormy seas; I am strong, when I am on your s... 阅读全文
posted @ 2012-09-02 13:19 苍术厚朴 阅读(149) 评论(0) 推荐(0) 编辑
摘要: import mathclass Measurement(object): def __init__(self, val, perc): self.val = val self.perc = perc self.abs = self.val * self.perc / 100.0 def __repr__(self): return "Measurement (%r, %r)" % (self.val, self.perc) def __str__(self): return "%g+-%g%%" % (... 阅读全文
posted @ 2012-08-31 18:51 苍术厚朴 阅读(1592) 评论(0) 推荐(0) 编辑
摘要: import UserDictclass FifoCache(object, UserDict.DictMixin): def __init__(self, num_entries, dct= ()): self.num_entries = num_entries self.dct = dict(dct) self.lst = [ ] def __repr__(self): return '%r (%r,%r)' % (self.__class__.__name__, self.name_entries, self.dct) ... 阅读全文
posted @ 2012-08-31 17:50 苍术厚朴 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 范例一:将整个 /etc 目录下的文件全部打包成为 /tmp/etc.tar[root@linux ~]# tar -cvf /tmp/etc.tar /etc <==仅打包,不压缩![root@linux ~]# tar -zcvf /tmp/etc.tar.gz /etc <==打包后,以 gzip 压缩[root@linux ~]# tar -jcvf /tmp/etc.tar.bz2 /etc <==打包后,以 bzip2 压缩# 特别注意,在参数 f 之后的文件档名是自己取的,我们习惯上都用 .tar 来作为辨识。# 如果加 z 参数,则以 .tar.gz 或 .t 阅读全文
posted @ 2012-08-31 16:27 苍术厚朴 阅读(701) 评论(0) 推荐(0) 编辑
摘要: #虽然版本控制系统更强大,但这个脚本在开发工作中然后很有用。我常常对它进行定制,比如只对某个特定后缀名的文件进行备份;在for file in files 循环的内部加一个适当的测试就行了。如:name, ext = os.path.splitext(file) if ext not in ('.py', '.txt', '.doc'):continue 代码片段首先使用标准库模块os.path的splitext函数来获得文件的扩展名(以一个句号开始),放入局部变量ext中,然后,如果文件拓展名不是我们感兴趣的几个扩展名之一,我们就执行conti 阅读全文
posted @ 2012-08-30 19:08 苍术厚朴 阅读(1199) 评论(0) 推荐(0) 编辑
摘要: 首先当然是要安装samba了,呵呵:代码:sudo apt-get install sambasudo apt-get install smbfs下面我们来共享群组可读写文件夹,假设你要共享的文件夹为: /home/ray/share首先创建这个文件夹代码:mkdir /home/ray/sharechmod 777 /home/ray/share备份并编辑smb.conf允许网络用户访问代码:sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backupsudo gedit /etc/samba/smb.conf搜寻这一行文字代码:; secur 阅读全文
posted @ 2012-08-30 17:00 苍术厚朴 阅读(1751) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页