原创 編程:判斷一個給定字符串中字符全都不同java

Java 代碼: import java.util.*; public class Different { public boolean checkDifferent(String str) { if (str =

原创 Java System.nanoTime與System.currentTimeMillis

1、System.nanoTime 提供相對準確的時間,單位爲:毫微秒(nanoseconds) 2、System.currentTimeMillis 從1970.1.1 UTC 零點開始到現在的時間,精確到毫秒 計算當前日期,星期幾等,

原创 基於Android的h5與Act的交互

現如今的Android和IOS的App除了原聲的Native頁面外,還有嵌入了很多H5的頁面。 其中,安卓方便提供了控件WebView可在Android中展示H5頁面。 現在針對H5頁面中使用Native中的方法學習記錄: 1、在xml中

原创 mac 安裝python網絡請求包requests

sudo easy_install requests done 即可愉快的使用 requests了

原创 mac 原始hosts

## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do n

原创 git Merge 衝突解決---流程

1、在自己的branch已commit 和push 發現conflict 執行:git fetch origin master:master。 將本地master更新至和遠端master在一個節點上(master HEAD 已更新)