什么是动态规划?动态规划的意义是什么? - 阮行止的回答 - 知乎
# -*- coding: utf-8 -*-
# 总金额
money = 2000
# 存储金额与使用数量的数组
f = [0] * money
# 金额为零时可用策略为零什么是动态规划?动态规划的意义是什么? - 阮行止的回答 - 知乎
# -*- coding: utf-8 -*-
# 总金额
money = 2000
# 存储金额与使用数量的数组
f = [0] * money
# 金额为零时可用策略为零| #include <math.h> | |
| k;double sin() | |
| ,cos();main(){float A= | |
| 0,B=0,i,j,z[1760];char b[ | |
| 1760];printf("\x1b[2J");for(;; | |
| ){memset(b,32,1760);memset(z,0,7040) | |
| ;for(j=0;6.28>j;j+=0.07)for(i=0;6.28 | |
| >i;i+=0.02){float c=sin(i),d=cos(j),e= | |
| sin(A),f=sin(j),g=cos(A),h=d+2,D=1/(c* |
<hash> with your gist's hash):
# with ssh
git clone [email protected]:<hash>.git mygist
# with httpsgit clone https://gist.github.com/.git mygist
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "path" | |
| "time" |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
| #!/usr/bin/env bash | |
| # 可以通过命令 go env 获取当前的环境变量 | |
| CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o http_echo_linux | |
| CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o http_echo_windows.exe | |
| CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o http_echo_mac |
| package main | |
| import ( | |
| "encoding/hex" | |
| "log" | |
| "net" | |
| "time" | |
| ) | |
| const ( |
| package main | |
| import ( | |
| "flag" | |
| "io" | |
| "log" | |
| "net/http" | |
| "sort" | |
| "strconv" | |
| ) |
| package main | |
| type animal interface { | |
| say() | |
| work() | |
| } | |
| type dog struct { | |
| } |
Jenkins 是一个用来进行持续集成的工具,配置和使用为如下的几个步骤:
java -jar jenkins.war 来执行即可;pom.xml 和 clean package 即可,如果 pom.xml 不在根目录,也可以使用诸如 test/pom.xml 这种结构,只要能找到此文件即可;* * * * * 即可,这里的语法和crontab是一样的;