EExcel 丞燕快速查詢2

EExcel 丞燕快速查詢2
EExcel 丞燕快速查詢2 https://sandk.ffbizs.com/

python 3 pandas matplotlib.pyplot

寫程式這麼久,python真的有夠難寫的,網路上一堆範例都有語法上的錯誤或不完整的,後來經由大陸某教學網終於成功

https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/3-8-pd-plot/


1、donwload python3 from python website

2、create aaa.py   put context

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt 

ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=1000))
ts = ts.cumsum()
print(ts)

ts.plot()

plt.show()  //This is best important!!

3、python aaa.py  then see error. Usually is package not install. So  just pip install

import matplotlib.pyplot as plt      # pip install matplotlib
import pandas as pd        # pip install pandas

see screen have notis, just follow install.



windows docker go

1、go
mkdir directory  aaa

create file go_httpserver.go





package main
import (
  "fmt"
  "net/http"
)

func handler(w http.ResponseWriter, r *http.Request) {
  fmt.Fprintf(w, "Welcome to my Website!!!\n %s", r.URL.Path[1:])
}

func main() {
  http.HandleFunc("/", handler)
  http.ListenAndServe("0.0.0.0:80", nil)
}

set GOARCH=amd64
set GOOS=linux

go build go_httpserver.go   => get linux go program



2、create docker image

2.1  install docker toolbox Link  

2.2  run kitematic then see left-down   DOCKER CLI  , click it, then 

2.2.1 create directory bbb
2.2.2 create Dockerfile

FROM scratch
ADD go_httpserver /
ENTRYPOINT ["/go_httpserver"]

docker buid -t testdockergoweb:v1 .
2.2.3  use kitematic left-up  +NEW  ->  My Images -> CREATE just crate image

2.2.4  now Containers list have testdockergoweb running.  see right-up Settings
-> Hostname / Ports -> change 
DOCKER PORT  80   
PUBLISHED IP:PORT   port->3111

SAVE

then

click  PUBLISHED IP:PORT  list have bule link.    



3、export docker image

in DOCKER CLI   -> docker export testdockergoweb > testdockergoweb.tar