原创 第一次進行android逆向的過程記錄

前言 要逆向的是一款叫shengqian快報的app,具體要分析sign簽名的加密過程。 環境配置及工具 系統:macOS 10.14.1  模擬器:mac版夜神模擬器 3.0.3.0 抓包工具:Charles 逆向工具:apk-tool

原创 python中連續賦值遇到的問題

在學習生成器的時候做了一個生成斐波那契數列的練習,下面是練習的代碼: import sys def fib(n): a, b, count = 0, 1, 0 while 1: if count >=

原创 獲得對象可被調用的方法及方法文檔

def info(object, collapse=1, spacing=15): """ 使用更加格式化的方式來將 object中可以被調用的方法,被調用的方法詳細的文檔說明打印出來 collapse

原创 MacOS安裝python3

Mac系統自帶python,不過版本是2.x的,我的系統python版本是2.7.10。 skdeMacBook-Air:~ Kevin$ python Python 2.7.10 (default, Jul 15 2017, 17:1

原创 Find Anagram Mappings

DescriptionGiven two lists Aand B, and B is an anagram of A. B is an anagram of A means B is made by randomizing the or

原创 Judge Route Circle

DescriptionInitially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a c

原创 python中與或運算

  邏輯與(and): >>> 1 and "a" 'a' >>> 0 and "a" 0   邏輯或(or):  >>> 0 or "a" 'a'   與或運算:    觀察下面兩個運算可以看出0和1可以作爲輸出'a'或'b'的開

原创 MAC環境爲python3時無法創建cocos2d-x項目解決方法

由於cocos2d-x不支持python3版本,因此創建項目時就會遇到問題。我的解決方法:打開終端,輸入vim ~/.bash_profile在第一行加入一句(注意一定要在第一行,放在後面可能會被python3的path覆蓋掉)expor

原创 Hamming Distance

DescriptionThe Hamming distance between two integers is the number of positions at which the corresponding bits are dif

原创 Self Dividing Numbers

DescriptionA self-dividing number is a number that is divisible by every digit it contains.For example, 128 is a self-d