原创 C++學習筆記(零)

C++學習筆記 序章 C++內容: 基本元素 Objects(對象) & Class(類) Inheritance(繼承) & Polymorphism(多態) Exceptions(異常) & Templates(模板) C

原创 MAC TensorFlow安裝與更新

TensotFlow安裝 首先嚐試使用 python2.7 pip安裝 sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow

原创 Windows Tensorflow安裝

使用python3.5 一定要是64位 如果不是64位,會報錯tensorflow不能在此平臺使用 之後使用pip安裝 cpu only pip install --upgrade https://storage.googlea

原创 爲Mac添加Sublime Text的命令行

sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl 因爲MacOS 10.11開始apple引入了R

原创 通過Automator爲程序創建快捷鍵

以Terminal爲例 1.打開Automator 2.選擇 新建,然後選擇 服務 3.“服務”收到 選擇爲 ,沒有輸入 4.在左側邊欄找到 實用工具——運行AppleScript 雙擊 5.在編輯區輸入 可以點擊左

原创 C++實驗(一)

實驗一 寫一個c++版本的hello world程序 代碼如下: #include <iostream> using namespace std; int main() { cout << " Hello World! "

原创 TensorFlow入門 fully_connected_feed.py

# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "

原创 Mnist下載 Python源代碼

# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); #

原创 Mac 安裝 Scrapy (python3)

使用python3進行安裝 pip3 install Scrapy 但是 /usr/local/bin 中並沒有 scrapy命令 找到/Library/Frameworks/Python.framework/Versions/3.6/

原创 C++學習筆記(一)

第一章 C++簡單程序設計 那麼以一段程序開頭吧 //first.cpp #include <iostream> #include <vector> //動態數組(malloc, new 在heap上分配空間) //malloc = m(

原创 pip更新所有需要更新的包

新建一個shell文件 比如upgrade.sh 輸入以下內容 for i in `pip list -o --format legacy|awk '{print $1}'` ; do sudo -H pip install --up

原创 C++實驗(二)

認真閱讀下面的代碼,並更改錯誤,得到合理的結果 // Debugging Problem #include <iostream> using std::cout; using std::cin; using std::endl; #

原创 C++學習筆記(二)

這篇博客主要是簡單的介紹一下符號常量、引用以及函數重載 常量 常量包括字面常量(literal)和符號常量(const) 字面常量是不需要給出類型的,如: 20, “Jiang”, 123u, (unsideint) 123l,