原创 mac安裝scrapy

mac安裝scrapy sudo pip install scrapy 在命令行執行 scrapy 出現:ImportError: cannot import name xmlrpc_client 解決方案: sudo pip u

原创 python簡單基礎介紹

python簡單基礎介紹 1.開發環境的搭建 我用的開發環境是pycharm,下載地址:www.jetbrains.com 2.Python變量的定義 a = 10 b = 10 c = a + b print c 3.Py

原创 1366 (HY000): Incorrect string value

對於一些稀有的漢字字符,在使用utf8存數據庫的時候,是沒法寫進去的,今天發現了一個解決此問題的方法。(就是在建表的時候指定該字段的類型爲:blob而不是text或者varchar) CREATE TABLE `ab` ( `

原创 簡單的C回顧

#include <stdio.h> int main(){ int a = 10; printf("%d\n",a); scanf("%d",&a); printf("%d",a);

原创 很好的CNN學習資料

http://xiahouzuoxin.github.io/notes/html/%E6%B7%B1%E5%BA%A6%E5%8D%B7%E7%A7%AF%E7%BD%91%E7%BB%9CCNN%E4%B8%8E%E5%9B%B

原创 python對文件的簡單操作

python文件的讀寫 \#encoding=utf8 fc = open("./testopen.txt","w") content='"我是文件的內容"' fc.write(content) fc.close() f

原创 mac安裝mongodb

mac上安裝mongodb 下載地址:www.mongo.org 難點:mac下配置環境變量 nano .bash_profile export PATH=/path/bin/:$PATH 配置數據庫的存放路徑,驗證數據庫是否可以

原创 python tensorflow 基於cnn實現手寫數字識別

感覺剛纔的代碼不夠給力,所以再保存一份基於cnn的手寫數字自識別的代碼 # -*- coding: utf-8 -*- import tensorflow as tf from tensorflow.examples.tutor

原创 python 操作mongodb

Python對mongodb的簡單操作 這裏我們再mongo中新建了一個數據庫users #encoding=utf8 from pymongo import MongoClient mc = MongoClient("loc

原创 python switch結構的實現

Python中沒有switch - case結構,如何自己實現一個, #pyton中沒有switch結構定義一個類似於switch的類 class switch(object): def __init__(self, va

原创 python tensorflow 使用minist數據集實現手寫數字識別

這個是大牛寫的,怕以後找不到了,所以做個保存 二話不說上代碼: # -*- coding: utf-8 -*- import tensorflow as tf from tensorflow.examples.tutorial

原创 pythcarn使用git

https://www.cnblogs.com/sddai/p/9385647.html

原创 Ubuntu 18.04安裝Codeblocks

一:首先安裝簡版CodeBlocks sudo apt install codeblocks 二:把編譯環境,C庫、C++庫和Boost庫裝好 sudo apt install build-essential 三:安裝 CodeB

原创 Python下"No module named _tkinter"問題解決過程總結

sudo apt install python3-tk (Ubuntu) yum install python3-tk (Centos) sudo apt install tk-dev (Ubuntu/Debian) yum inst

原创 js_meihua

http://www.css88.com/tool/js_beautify/