原创 string類型的公式如何用程序計算 括號處理算法方案 如計算 sin(3*π-2cos(3*π-2))*2-sin(0.12*π)

/// <summary> /// 根據算術公式進行計算 /// </summary> /// <param name="formula">string 類型的公式 如:s

原创 apache配置多站點

在 httpd.conf 中找到<Directory />配置成:<Directory /> Options FollowSymLinks ExecCGI Indexes AllowOverride none #這裏是禁止所有

原创 apache配置多網站無效問題

這個坑都不知道是不是隻有我才能遇到其實說起啦也簡單,就是文件覆蓋的問題在/etc/httpd/con.d 上創建一個a.conf ,然後在裏面寫上多個網站,但是運行的時候總是隻能訪問到默認的網站1.首先要打開虛擬路徑配置:打開Apache

原创 mysql注意事項

1.如果是用阿里雲的服務器,先要看阿里雲的配置是否允許3306端口訪問。2.忘記密碼的時候 ,找到 /etc/my.cnf 文件 上加上 skip-grant-tables 跳過密碼。3登陸 mysql 之後找到use mysql 找到

原创 tensorflow讀取img,csv

import tensorflow as tfimport cv2 as cvimage_add_list=[]image_label_list=[]with open("train_list.csv")

原创 tensorflow讀取img,csv

import tensorflow as tfimport cv2 as cvimage_add_list=[]image_label_list=[]with open("train_list.csv")

原创 TFrecords 寫入 讀取操作

#寫入操作import tensorflow as tfimport numpy as npwriter =tf.python_io.TFRecordWriter("trainArray.tfrecords

原创 django uwsgi 和 nginx 配置ajax 跨域無效問題

根據網上給出的教程實現這三者的聯通之後,可能有些朋友會發現,跨域ajax 請求用不了 在 niginx 上配置了location / { #add_header 'Access-Control-Al

原创 安裝 .Net Core 執行代碼

安裝 .Net Coresudo yum -y install libunwind libicu curl -SL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?linkid=8488