原创 使用zipfile解壓一個壓縮了N次的zip文件

 新博客地址:http://gorthon.sinaapp.com/ 純粹是蛋疼哈。 下面是個zip文件,壓縮次數請自測。 http://u.115.com/file/f052e317c0 解壓代碼是: import zipfile zi

原创 人人開放平臺客戶端OAuth認證及API的使用[python]

新博客地址:http://gorthon.sinaapp.com/ 注:本文爲了敘述方便,沒有將UI與邏輯分離。本文只是介紹方法,至於代碼的可讀性,還請原諒。 1. 獲取API Key和SECRET,在創建應用的時候會告訴你這兩個值。 以

原创 pys60登錄校內

新博客地址:http://gorthon.sinaapp.com/ import httplib import appuifw2 as appuifw import urllib import e32 from appuifw2 impo

原创 中國移動WLAN無線上網清單查詢

新博客地址:http://gorthon.sinaapp.com/ 【注意】中國移動官網只能查詢到無線上網的清單。如果你開通了中國移動的有線上網的話,這個是查不到的,因爲我沒找到官網上有查詢有線使用多少小時以及清單的地方,所以這個只能查詢

原创 編程腦筋急轉彎

新博客地址:http://gorthon.sinaapp.com/ 可能標題起的有點不對頭哈…… 下面這個表面上看是個jpg文件,不過呢它可不僅僅是個jpg文件哦,呵呵。 裏面我有說一句話,大家找找看是什麼話,當然從圖上看是看不出什麼來

原创 pythonchallenge 【第0題】

 新博客地址:http://gorthon.sinaapp.com/ 1: http://www.pythonchallenge.com/pc/def/0.html >>> 2 ** 38 274877906944L >>>    或者:

原创 pythonchallenge 【第1題】

 新博客地址:http://gorthon.sinaapp.com/ http://www.pythonchallenge.com/pc/def/274877906944.html >>> a = "g fmnc wms bgblr rp

原创 MFC實現python中的split功能

新博客地址:http://gorthon.sinaapp.com/ void FunctionPy::split(const CString src, vector<CString> &dest, const CString divisi

原创 函數返回引用和指針類型

新博客地址:http://gorthon.sinaapp.com/ #include <stdio.h> #include <stdlib.h> #include <iostream.h> char *g() { char p[]="h

原创 【projecteuler.net】題目 48

新博客地址:http://gorthon.sinaapp.com/ Problem 48 The series, 11 + 22 + 33 + ... + 1010 = 10405071317. Find the last ten

原创 終於知道某某網盤的rsa怎麼得到了

新博客地址:http://gorthon.sinaapp.com/ 逆向一下就可以知道算法了:   import hashlib file_content = file('./upload.test', 'rb').read() def

原创 把CSDN的皮膚改醜一點就成這樣了,下面是CSS代碼。在Cogitation皮膚的基礎上改的。

新博客地址:http://gorthon.sinaapp.com/ body{height:100%;min-width:760px;font-family:"Microsoft yahei",verdana,sans-serif;ba

原创 pythonchallenge 【第3題】

 新博客地址:http://gorthon.sinaapp.com/ http://www.pythonchallenge.com/pc/def/equality.html 這個題目的意思一直沒有明白…… 其實是這樣的,如rRSHpSDB

原创 pythonchallenge 【第2題】

新博客地址:http://gorthon.sinaapp.com/ http://www.pythonchallenge.com/pc/def/ocr.html 先查看源碼,得到那個長的客串 >>> import string >>> a

原创 python中實現動態變量

新博客地址:http://gorthon.sinaapp.com/ 現實當中這樣用是不好的,也是不安全的,純粹是看看python的強大而已。 for i in range(10): exec 'item%d=%d'%(i,i) p