原创 【Android】fragment切換的demo

1.文件準備:①MainActivity.java activity_layout.xml;②3-4個Fragmentxx.java   fragmentxx.xml;③一個顏色資源文件,用於按鈕切換的展示。④style文件,同一管理按鈕

原创 【Leetcode】628. Maximum Product of Three Numbers(Easy)

1.題目Given an integer array, find three numbers whose product is maximum and output the maximum product.翻譯:給定一個整數序列,找到三個

原创 【Leetcode】627. Swap Salary(Easy)

1.題目Given a table salary, such as the one below, that has m=male and f=female values. Swap all f and m values (i.e., ch

原创 【Android】kotlin的let run apply also等等學習記錄

好久沒有更新啦,今天學習了一些kotlin的語法 class MainActivity : AppCompatActivity() { private val testArray: ArrayList<String> by l

原创 【Linux】ubuntu虛擬機搭建Droidbox環境

歷時一天半,終於成功搭上了droidbox環境。 宿主機環境:windows7 64 虛擬機:VMware Workstation Pro Linux:Ubuntu 15.10 主要步驟是按照該篇來進行的  Droidbox惡意軟件動態

原创 【Python】常用語法

1.遍歷一個文件夾 apks = 'C:\\xxx' filenames = os.listdir(apks) for filename in filesnames: #此處遍歷出來的非完整路徑,只是文件名字

原创 【Leetcode】633. Sum of Square Numbers(Easy)

1.題目Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c.

原创 【Leetcode】645. Set Mismatch(Easy)

1.題目The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in

原创 【Leetcode】637. Average of Levels in Binary Tree(Easy)

1.題目Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array.Example

原创 【Leetcode】617. Merge Two Binary Trees(Easy)

1.題目Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees ar

原创 【微信小程序】wx.request出現undefined

偶現,天啦嚕,一直困惑了很久的bug終於找到原因了。示例代碼如下wx.request({ sucess:function(res){ if(res.statusCode==200 && res.data.statu

原创 【Leetcode】643. Maximum Average Subarray I(Easy)

1.題目Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum averag

原创 【Leetcode】620. Not Boring Movies(Easy)

1.題目X city opened a new cinema, many people would like to go to this cinema. The cinema also gives out a poster indicat

原创 【Android】ScrollView嵌套EditText出現的UI混亂

情景:在ScrollView中嵌套EditText,當EditText獲取焦點時,會導致整個ScrollView自動下沉,軟鍵盤也會遮擋住EditText.找了好幾天辦法,試圖禁止ScrollView的自動滾動,沒有用。看下效果圖,巨噁心

原创 【Linux】常用命令

$top #查看cpu佔用 $ps aux | grep key #key代表要查找的關鍵字 $ls #查看當前目錄下所有文件 $cd xxx