原创 leetcode 部分題解(python)
leetcode 部分題解(python) 215. Kth Largest Element in an Array 題目鏈接:https://leetcode.com/problems/kth-largest-element-
原创 Python: how to create a list of n lists [[],[],[]]
今天做leetcode螺旋寫入矩陣https://leetcode.com/problems/spiral-matrix-ii/ 這個題目的時候,需要初始化一個含有n個list的list,因爲對python不是特別的熟悉,剛開始
原创 求兩個矩陣中向量的歐氏距離(python實現)
假設有兩個三維向量集,用矩陣表示: 要求A,B兩個集合中的元素兩兩間歐氏距離。 先求出ABT: 然後對A和BT分別求其中每個向量的模平方,並擴展爲2*3矩陣: 然後: 將上面這個矩陣一開平方,就得到了A,B向量集兩
原创 64位win10下安裝xgboost python包的教程
原文網址:http://blog.csdn.net/zyghs/article/details/50897716 其中MinGW-W64使用上傳到csdn上面的工具包 一、操作環境的確認 platform:windows 10,
原创 python pip以及whl文件安裝
下載pip 在cmd下安裝 https://pip.pypa.io/en/latest/installing/#id7 安裝成功,下面需要配置pip的環境變量,否則,window系統是不認識pip命令的。即在python安裝
原创 screen用法
screen -S yourname -> 新建一個叫yourname的session screen -ls -> 列出當前所有的session screen -r yourname -> 回到yourname這個session
原创 Deep Learning(深度學習)學習筆記(一)
原文網址:http://blog.csdn.net/zouxy09/article/details/8775360 一、概述 Artificial Intelligence,也就是人工智能,就像長生不老和星際漫遊一樣,是人類
原创 matlab柱狀圖填充物
代碼已經上傳到資源 使用直接調用函數即可,填充物可調密度 bar(rand(3,3)); im_hatch = applyhatch_plusC(gcf,{makehatch_plus('\',6),makehatch_plus('+',
原创 window10下同時安裝python2.7和python3.5,並配置sublime ctrl+B選擇運行python版本
安裝python 首先是安裝兩個版本的python,並配置相應的環境變量 1、在下載安裝好Python 2.7和Python 3.5後,找到目錄並改程序命名,將G:\Software\Python27(這是安裝目錄,下同,每人可能
原创 動態規劃之01揹包問題
原文地址:http://blog.csdn.net/mu399/article/details/7722810 題目描述: 有編號分別爲a,b,c,d,e的五件物品,它們的重量分別是2,2,6,5,4,它們的價值分別是6,3,5
原创 What is key=lambda in python
原文地址: http://stackoverflow.com/questions/13669252/what-is-key-lambda A lambda is an anonymous function: f = lambda: