如何编译由多个文件组成的Go程序?

所以我有一个包含三个文件的小程序,所有文件都属于同一个程序包(主程序),但是当 我做“去建立main.go”,构建不会成功。 当它只是一个文件(main.go)时,一切正常。 现在,我已经花了一些力气来分离代码,看来编译器无法找到从main.go中取出的东西并放入其他两个文件(与main.go位于同一目录中) 。 会导致“未定义的'类型'”错误。</ p>

我读了一些有关设置GOPATH变量的内容,所以我尝试了</ p>

 设置GOPATH  =%cd%
go建立main.go
</ code> </ pre>

,但那也行不通。</ p>

任何帮助都值得感谢 </ p>
</ div>

展开原文

原文

So I have a small program that consists of three files, all belonging to the same package (main), but when I do "go build main.go" the build doesn't succeed. When it was just one file (main.go) everything worked fine. Now that I took some effort to separate the code, it looks like the compiler is unable to find the stuff that was taken out of main.go and put into these two other files (that reside at the same directory as the main.go). Which results in "undefined 'type'" errors.

I read something about setting the GOPATH variable, so I tried

set GOPATH=%cd%
go build main.go

but that too didn't work.

Any help is appreciated.

6个回答



假设您正在编写名为myprog的程序:</ p>

将所有文件放在目录中 像这样</ p>

  myproject / go / src / myprog / xxx.go 
</ code> </ pre>

然后添加 myproject / go </ code>转到GOPATH </ p>

并运行</ p>

 去安装myprog 
</ code> </ pre>

通过这种方式,您可以根据需要在myproject / go / src中添加其他软件包和程序。</ p>

参考:http://golang.org/doc/code.html </ p>

(此文档经常被新手所错过,并且经常 首先应该理解的不正确。应该受到Go小组IMO的最大关注)</ p>
</ div>

展开原文

原文

Supposing you're writing a program called myprog :

Put all your files in a directory like this

myproject/go/src/myprog/xxx.go

Then add myproject/go to GOPATH

And run

go install myprog

This way you'll be able to add other packages and programs in myproject/go/src if you want.

Reference : http://golang.org/doc/code.html

(this doc is always missed by newcomers, and often ill-understood at first. It should receive the greatest attention of the Go team IMO)

drt5813
drt5813 我还是不明白为什么这个文件夹结构?
10 个月之前 回复
douliang2087
douliang2087 不确定我是否同意这一点,但是无论如何这是针对简单项目的,您可以删除go部分-人们可能会认为go事情是必要的,而事实并非如此。 您告诉我,走还是走,哪个更简单? :)
3 年多之前 回复
doucheng7234
doucheng7234 只有小型项目仅使用一种技术。
3 年多之前 回复
dsfsda121545
dsfsda121545 另外,我假设“去安装myprog”以某种方式将项目源写入$ GOPATH位置? 那正确吗? 如果是这样,也可以将该解释也作为答案的一部分
3 年多之前 回复
douxi8759
douxi8759 为什么不摆脱/ go /而只做myproject / src?
3 年多之前 回复
dongyinting3179
dongyinting3179 确实,我忽略了非常有用的一章。 谢谢!
大约 8 年之前 回复



这取决于您的项目结构。 但最直接的方法是:</ p>

 开始构建。/ ... -o ./myproject
</ pre>

然后运行 ./ myproject </ code>。</ p>

假设您的项目结构如下</ p>

 -您好
|-main .go
</ code> </ pre>

然后您只需转到项目目录并运行</ p>

  go build -o ./myproject

</ code> </ pre>

,然后在shell上运行 ./ myproject </ code>。</ p>

或</ p>

 #最简单; 生成并同时运行
go运行main.go
</ code> </ pre>

假设您的主文件嵌套在子目录中,例如 cmd </ code> </ p>

 -你好
|-cmd
|-main.go
</ code> </ pre>

然后您将运行</ p >

 运行cmd / main.go 
</ code> </ pre>
</ div>

展开原文

原文

It depends on your project structure. But most straightforward is:

go build ./... -o ./myproject

then run ./myproject.

Suppose your project structure looks like this

- hello
|- main.go

then you just go to the project directory and run

go build -o ./myproject

then run ./myproject on shell.

or

# most easiest; builds and run simultaneously
go run main.go

suppose your main file is nested into a sub-directory like a cmd

- hello
|- cmd
 |- main.go

then you will run

go run cmd/main.go

duan19805
duan19805 谢谢-o参数帮助我
大约一年之前 回复



您也可以只运行</ p>

  go build 
</ code> < / pre>

在您的项目文件夹myproject / go / src / myprog </ p>

中,然后您只需键入</ p>

  ./ myprog 
</ code> </ pre>

以运行您的应用</ p>
</ div>

展开原文

原文

You could also just run

go build

in your project folder myproject/go/src/myprog

Then you can just type

./myprog

to run your app

dongxiaolin2801
dongxiaolin2801 只需为该文件添加chmod + x权限即可运行它
12 个月之前 回复
dtqu72830
dtqu72830 输出是go对象,而不是可执行文件。
3 年多之前 回复



您可以使用</ p>

  go build * .go 
go run * .go

</ code> </ pre>

都可以使用,您也可以使用</ p>

 进行构建。
go run。
</ code > </ pre>
</ div>

展开原文

原文

You can use

go build *.go 
go run *.go

both will work also you may use

go build .
go run .



当您将代码从 main.go </ code>分离为例如 more.go </ code> ,您只需将该文件传递给 go build </ code> / go run </ code> / go install </ code>。</ p>

因此,如果您以前运行</ p>

 去构建main.go 
</ code> </ pre>

,您现在只需</ p>

 去构建main.go more.go 
</ code> </ pre>


更多信息</ p>

 开始构建--help 
</ code> </ pre>

状态:</ p>

 如果参数为 .go文件列表,build将它们视为指定单个软件包的
源文件列表。
</ code> </ pre>


请注意 go build </ code>和 go install </ code>与 go run </ code>不同之处在于,前两个状态期望以软件包名称</ em>作为参数,而 后者需要 go个文件</ em>。 但是,前两个也将像go install一样接受go文件。</ p>

如果您想知道:build只是 build </ code>软件包/文件, install </ code>将在您的GOPATH中生成目标文件和二进制文件,而 run </ code>将编译并运行您的程序。</ p>
</ div>

展开原文

原文

When you separate code from main.go into for example more.go, you simply pass that file to go build/go run/go install as well.

So if you previously ran

go build main.go

you now simply

go build main.go more.go

As further information:

go build --help

states:

If the arguments are a list of .go files, build treats them as a list
of source files specifying a single package.

Notice that go build and go install differ from go run in that the first two state to expect package names as arguments, while the latter expects go files. However, the first two will also accept go files as go install does.

If you are wondering: build will just build the packages/files, install will produce object and binary files in your GOPATH, and run will compile and run your program.

dtpn60029
dtpn60029 是的,我使用的是MacOS,但也许是Bash版本3搞砸了,我应该升级到Bash 4。
2 年多之前 回复
dongzi9196
dongzi9196 因为Windows,我认为使用nix。 或至少是mingw。
2 年多之前 回复
douhuan3420
douhuan3420 去构建* .go,行得通吗? 不适合我
3 年多之前 回复
douyou1960
douyou1960 好的,谢谢,Go是否总是只写出一个可执行文件? 它不会将可执行文件分开(例如在Java中)吗?
3 年多之前 回复
dongzhuonao8429
dongzhuonao8429 如果您不想继续添加越来越多的文件,请使用正则表达式,并执行以下操作:go run * .go
4 年多之前 回复



是的! 这很简单,这就是打包策略起作用的地方。 据我所知,有三种方法。
文件夹结构:</ p>

GOPATH / src /
github.com/
abc /
myproject /
适配器/
main.go

pkg1
pkg2
警告:适配器只能包含软件包主目录和sun目录</ p>


  1. 导航到“ adapter”文件夹。 运行:</ li>
    </ ol>

     转到构建main.go 
    </ code> </ pre>

      \ n
    1. 导航到“ adapter”文件夹。 运行:</ li>
      </ ol>

       转到构建main.go 
      </ code> </ pre>

        \ n
      1. 导航至GOPATH / src
        识别包main的相对路径,此处为“ myproject / adapter”。 运行:</ li>
        </ ol>

         来构建myproject / adapter 
        </ code> </ pre>

        exe文件将 将在您当前所在的目录中创建。</ strong> </ p>
        </ div>

展开原文

原文

Yup! That's very straight forward and that's where the package strategy comes into play. there are three ways to my knowledge. folder structure:

GOPATH/src/ github.com/ abc/ myproject/ adapter/ main.go pkg1 pkg2 warning: adapter can contain package main only and sun directories

  1. navigate to "adapter" folder. Run:
    go build main.go
  1. navigate to "adapter" folder. Run:
    go build main.go
  1. navigate to GOPATH/src recognize relative path to package main, here "myproject/adapter". Run:
    go build myproject/adapter

exe file will be created at the directory you are currently at.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
运行编译的golang程序时如何使用配置文件

<div class="post-text" itemprop="text"> <p>I build a go file using <code>go build main.go</code>. But this program is using a ini file, how do I use this file cause when I run <code>./main</code>, I am getting this error: </p> <pre><code>2018/09/20 17:37:38 open config/config.ini: no such file or directory 2018/09/20 17:37:38 open config/config.ini: no such file or directory panic: open config/config.ini: no such file or directory goroutine 1 [running]: log.Panic(0xc0000f7e98, 0x1, 0x1) </code></pre> <p>The code for using this file are:</p> <pre><code>func GetConfigFile() (*ini.File, error) { f, err := ini.Load("config/config.ini") if err != nil { log.Println(err) } return f, err } </code></pre> </div>

使用Go反编译已编译的程序

<div class="post-text" itemprop="text"> <p>我已经建立了一个简单的可执行程序 <code>Go</code>. </p> <p>我已经将代码编译成静态二进制程序。 我想反编译输出二进制文件并获取Go源代码。 这有可能吗?</p> </div>

如何在go程序包中运行多个测试文件

<div class="post-text" itemprop="text"> <p>I have a project structure like this:</p> <pre><code>pkg | --pkg.go --pkg_test.go --a.go --a_test.go --b.go --b_test.go --c.go --c_test.go </code></pre> <p>I wish to get the coverage for all the source files belonging to the package i.e.(pkg.go, a.go, b.go and c.go). However, when I run:</p> <p><code>go test -v pkg</code> </p> <p>tests are run for only 1/4 go files.</p> <p>Is there any way I can test my package without moving all the test codes within one file and keeping the file structure intact ?</p> </div>

如何在golang中将日志写入多个日志文件?

<div class="post-text" itemprop="text"> <p>I am writing an application in which i need to record logs in two different files. For Example <strong>weblogs</strong>.go and <strong>debuglogs.go</strong>. I tried using the <strong>log4go</strong> but my requirement is i need the logger to be created in main file and be accessible in sub directory as major of decoding and logging is done in sub file. Can anybody please help with that? </p> </div>

在GO(GO1)中使用多个文件进行构建

<div class="post-text" itemprop="text"> <p>Does anyone know if it's possible to use the "go build" command to build from multiple files in a directory? For example</p> <pre><code>src/ file1.go file2.go </code></pre> <p>Where file1.go contains the "func main()" method and file2 provides supporting functions. I've tried by using the following import statements but I'm getting no where</p> <pre><code>import ( "file2" ) import ( file2 "./file2" ) </code></pre> <p>I'm wondering if this is a case that I need to modify the GOROOT environment variable to get this to work. Or if I'm just being daft and missing something blindingly obvious.</p> <p>Thanks</p> </div>

将配置文件与已编译的Go程序一起使用

<div class="post-text" itemprop="text"> <p>I have a Go application using a <code>config.json</code> file to get some information. When doing a <code>go run main.go</code> it works but when I'm compiling the application into an executable I have the error <code>open config.json: no such file or directory</code>.</p> <p>My code is:</p> <pre><code>func main() { data, err := ioutil.ReadFile("./config.json") check(err) var config config err = json.Unmarshal(data, &amp;config) check(err) } </code></pre> <p>I also have tried <code>ioutil.ReadFile("config.json")</code> and it does not work. <code>check(err)</code> and the <code>config</code> structure are in the <code>main.go</code>, the problem does not come from here. </p> <p><code>main.go</code>, <code>config.json</code> and the executable are in the same directory.</p> <p>What should I do to be able to use the <code>config.json</code> file once the program is compiled?</p> </div>

如何使用.a文件编译golang程序(无源)

<div class="post-text" itemprop="text"> <p>I need to compile my program - main.go with package bigPak without source. Exist only bigPak.a tnto GOPATH/pkg.</p> <p>Can you give me example of compile main.go with bigPak.a ?</p> </div>

在Go程序中使用多个文件

<div class="post-text" itemprop="text"> <p>I wish to learn how to logically split my code in a Go package into multiple files, and crucially, the syntax necessary to use that split/separate file in another file of the same package.</p> <p>I have created a go project in this form</p> <pre><code>-test -bin -pkg -src -main main.go test.go </code></pre> <p>and attempted to run <code>go build main</code> and <code>go build main.go test.go</code>, but I have always got an error.</p> <p>test.go contains only this code</p> <pre><code>package main import "fmt" func do(b string) { fmt.Println(b) } </code></pre> <p>I want to be able to call <code>do("x")</code> in main.go. Right now all that is in main.go is</p> <pre><code>package main func main() { test.do("x") } </code></pre> <p>I do not know what to do to get this to work. Many answers seem to suggest moving test.go into a directory "test". I am hoping Go does not require me to make a directory for every piece of code I write, but maybe I would be "fighting the system". Many answers have pointed me to a website telling me to make the above directory structure, and to use <code>go install</code> to compile my binaries, but that does not work.</p> <p>I just want to know how to use functions in package/x.go inside package/y.go, even if they are in the same package. There has to be a way to do this, otherwise I will have either a bunch of unnecessary packages or hard to understand monolithic files.</p> <p>I know there are many similar questions, but in my searching I haven't been able to find an actual example of the code in two files in the same package that reference each other.</p> </div>

在Windows中编译Go文件?

<div class="post-text" itemprop="text"> <p>I am trying to learn Go and have installed <a href="http://code.google.com/p/gomingw/downloads/list" rel="nofollow">Go MinGW</a> but I cannot find out how to actually compile a .go file ANYWHERE. This is the program linked directly from the Go wiki for Windows Support, but all the tutorials talk about using 6g and gccgo etc. to compile and none of those work from my windows machine.</p> </div>

Golang不会重新编译某些文件

<div class="post-text" itemprop="text"> <p>I just got an error:</p> <h1>server</h1> <p>server/server.go:73: undefined: foo.MyName</p> <p>I didn't understand at first and I tried to change the name of my function etc.. So I created a function called MyName() which return a string which is my name..</p> <p>But, the error just came up again.. After more than one hour, I just tried to comment all of my code in the package foo ! I wanted to say f**k that at this moment... #PS: I also comment the server.go:73 line.. and.. It compiles and totally works?!</p> <p>I commented my code, but it seems to be still here?! So now my question is:</p> <p>Does Golang have some problem to recompile some file?</p> <h1>-------------------------------------</h1> <p>Workspace</p> <pre><code>pkg linux_amd64 src algo database_sql github.com golang.org GoogleAPI googlemaps.github.io main main.go models myDebug router server </code></pre> <p>I'm making "go build main.go"</p> <p>I also read <a href="https://golang.org/doc/code.html" rel="nofollow">How to Write Go Code</a> without find any solution...</p> <p>Some hints? Thank !</p> </div>

Golang将多个文件添加到HTTP多部分请求

<div class="post-text" itemprop="text"> <p>Currently i am streaming 2 multipart requests separately.</p> <ol> <li>Contains the file as a blob</li> <li>contains a json file as a description of the blob</li> </ol> <p>How can i upload them at the same time with multipart?</p> <p>this is the request that runs 2 times. I want to add the 2 files in this 1 request</p> <pre><code> func(c *Client) Upload(h *UploadHandle) (*PutResult, error) { bodyReader, bodySize, err := h.Read() if err != nil { return nil, fmt.Errorf("Failed to peek the body size %v", err) } if bodySize &gt; constants.MaxDropSize { return nil, errors.New("The size of the body is to big") } pipeReader, pipeWriter := io.Pipe() writer := multipart.NewWriter(pipeWriter) errChan := make(chan error, 1) go func() { defer pipeWriter.Close() part, err := writer.CreateFormFile(h.DropRef, h.DropRef) if err != nil { errChan &lt;- err return } _, err = io.Copy(part, bodyReader) if err == nil { err = writer.Close() } errChan &lt;- err }() uploadUrl := fmt.Sprintf("%s/drops/upload", c.Server) req, err := http.NewRequest("POST", uploadUrl, pipeReader) if err != nil { return nil, err } req.Header.Add("Content-Type", writer.FormDataContentType()) req.Body = ioutil.NopCloser(pipeReader) resp, err := c.Do(req) if err != nil { return nil, fmt.Errorf("Failed doing request: %v", err) } defer resp.Body.Close() // Handling the error the routine may caused if err := &lt;-errChan; err != nil { return nil, err } if resp.StatusCode != 200 { return nil, fmt.Errorf("The server responded with a status %d", resp.StatusCode) } return &amp;PutResult{h.DropRef, bodySize}, nil } </code></pre> </div>

组织多文件的 Go 项目

<div class="post-text" itemprop="text"> <p>Note: this question is related to <a href="https://stackoverflow.com/questions/2182469/to-use-package-properly-how-to-arrange-directory-file-name-unit-test-file">this one</a>, but two years is a very long time in Go history.</p> <p>What is the standard way to organize a Go project during development ?</p> <p>My project is a single package <code>mypack</code>, so I guess I put all the .go files in a <code>mypack</code> directory.</p> <p>But then, I would like to test it during development so I need at least a file declaring the <code>main</code> package, so that I can do <code>go run trypack.go</code></p> <p>How should I organize this ? Do I need to do <code>go install mypack</code> each time I want to try it ?</p> </div> <p>转载于:https://stackoverflow.com/questions/9985559/organizing-a-multiple-file-go-project</p>

golang从编译文件中获取所有所有文件路径

<div class="post-text" itemprop="text"> <p>I am trying to fetch all source files that where used during compilation. Function runtime.Caller() and panic with its stacktrace show this info.</p> <p>I need something like this</p> <pre><code>func fetchUsedFiles() []string { .... } func main() { log.Println("Used Files",fetchUsedFiles()) } </code></pre> <p>UPD:</p> <p>All what I need is read somehow "runtime.firstmoduledata" variable content. But it is not exported variable. </p> </div>

使用gogland在主程序包上运行多个文件,然后运行/调试go应用程序

<div class="post-text" itemprop="text"> <p>I downloaded latest Gogland in order to run/debug Go 1.8.1 applications.</p> <p>I have the exact problem in Latest Intellij Ultimate EAP.</p> <p>my project's <code>main</code> package contains several files, when I try to run/debug it as a <code>Go Application</code>, it acts as a <code>Go Single File</code>.</p> <p>which means that when I try to run the application while choosing the main go file, it complains about missing variables definitions from other files on that same directory that are in the <code>main</code> package as well.</p> <p>in the <code>Run Configuration</code> when I choose <code>Package</code> instead of <code>File</code>, I can't choose the <code>main</code> package.</p> <p>so how do I run/debug my project properly ?</p> <p>thanks! :)</p> </div>

从编译的二进制文件中获取golang版本

<div class="post-text" itemprop="text"> <p>Is there a way to get golang version from <code>pkg/</code> or from compiled binary? I want to automate removal of <code>$GOPATH/pkg</code> folder only when I change the golang version.</p> </div>

无法理解如何在多个文件中编译go代码[重复]

<div class="post-text" itemprop="text"> <div class="question-status question-originals-of-duplicate"> <p>This question already has an answer here:</p> <ul> <li> <a href="/questions/9985559/organizing-a-multiple-file-go-project" dir="ltr">Organizing a multiple-file Go project</a> <span class="question-originals-answer-count"> 7 answers </span> </li> </ul> </div> <p>OK, Go's major selling point is its ease of compilation and wonderful toolchain, but as a go newbie I'm really lost there and can't understand the documentation on that point.</p> <p>I have a stack toy example within two files (one for the type definition and methods, called <code>stack.go</code>, one for the main program, called <code>main.go</code>), both are in my <code>GOPATH/src/stacker</code> directory.</p> <ol> <li>How should each file be named ? Does it have any importance at all ? Is there at least a convention ? A mandatory naming ?</li> <li>What should be the package name ? I understood they should use the same package name, but which one ? Is it <code>stacker</code> ?</li> <li>In <code>main.go</code>, how should I use the <code>import</code> directive to import <code>stack.go</code> ?</li> </ol> <p>I have tried many combinations, none working until now.</p> </div>

如何在GoLang程序中运行二进制文件?

<div class="post-text" itemprop="text"> <p>I want to execute Binary Files inside GoLang Program.</p> <p>Here is my code:</p> <pre><code>package main import ( "fmt" "os/exec" ) func main() { output, _ := exec.Command("/home/user/Golang/bin/hello").Output() fmt.Println(output) } </code></pre> <p>But I get the output as: []</p> <p>Thanks in advance.</p> </div>

Go(golang)包,包含多个文件夹

<div class="post-text" itemprop="text"> <p>Is it possible in Go (golang) to have a package consisting of several .go files from different folders?</p> <p>I am trying to make a subfolder inside of the main folder, and compiler says that it cannot find definitions ("undefined" error). When all the files are in the same folder, compilation does not give errors.</p> <p>Thanks.</p> </div>

Golang使用主程序包代码和.a文件进行编译吗?

<div class="post-text" itemprop="text"> <p>In my scenario I'll need to release my lib project without source code but a compiled form. Given,</p> <ul> <li>Some library package in the form of compiled .a files, </li> <li>a main package in form of source code, </li> <li>all their platform types where they're built on match, </li> </ul> <p>is it possible to compile the main and link it with .a files up into an executable? How to do it if doable? </p> </div>

C/C++学习指南全套教程

C/C++学习的全套教程,从基本语法,基本原理,到界面开发、网络开发、Linux开发、安全算法,应用尽用。由毕业于清华大学的业内人士执课,为C/C++编程爱好者的教程。

定量遥感中文版 梁顺林著 范闻捷译

这是梁顺林的定量遥感的中文版,由范闻捷等翻译的,是电子版PDF,解决了大家看英文费时费事的问题,希望大家下载看看,一定会有帮助的

YOLOv3目标检测实战:训练自己的数据集

YOLOv3是一种基于深度学习的端到端实时目标检测方法,以速度快见长。本课程将手把手地教大家使用labelImg标注和使用YOLOv3训练自己的数据集。课程分为三个小项目:足球目标检测(单目标检测)、梅西目标检测(单目标检测)、足球和梅西同时目标检测(两目标检测)。 本课程的YOLOv3使用Darknet,在Ubuntu系统上做项目演示。包括:安装Darknet、给自己的数据集打标签、整理自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型、性能统计(mAP计算和画出PR曲线)和先验框聚类。 Darknet是使用C语言实现的轻型开源深度学习框架,依赖少,可移植性好,值得深入探究。 除本课程《YOLOv3目标检测实战:训练自己的数据集》外,本人推出了有关YOLOv3目标检测的系列课程,请持续关注该系列的其它课程视频,包括: 《YOLOv3目标检测实战:交通标志识别》 《YOLOv3目标检测:原理与源码解析》 《YOLOv3目标检测:网络模型改进方法》 敬请关注并选择学习!

sql语句 异常 Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your

在我们开发的工程中,有时候会报 [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ------ 这种异常 不用多想,肯定是我们的sql语句出现问题,下面...

浪潮集团 往年的软件类 笔试题 比较详细的哦

浪潮集团 往年的软件类 笔试题 比较详细的哦

2019 AI开发者大会

2019 AI开发者大会(AI ProCon 2019)是由中国IT社区CSDN主办的AI技术与产业年度盛会。多年经验淬炼,如今蓄势待发:2019年9月6-7日,大会将有近百位中美顶尖AI专家、知名企业代表以及千余名AI开发者齐聚北京,进行技术解读和产业论证。我们不空谈口号,只谈技术,诚挚邀请AI业内人士一起共铸人工智能新篇章!

I2c串口通信实现加速度传感器和FPGA的交流

此代码能实现加速度传感器与FPGA之间的交流,从而测出运动物体的加速度。

Python可以这样学(第一季:Python内功修炼)

董付国系列教材《Python程序设计基础》、《Python程序设计(第2版)》、《Python可以这样学》配套视频,讲解Python 3.5.x和3.6.x语法、内置对象用法、选择与循环以及函数设计与使用、lambda表达式用法、字符串与正则表达式应用、面向对象编程、文本文件与二进制文件操作、目录操作与系统运维、异常处理结构。

微信公众平台开发入门

本套课程的设计完全是为初学者量身打造,课程内容由浅入深,课程讲解通俗易懂,代码实现简洁清晰。通过本课程的学习,学员能够入门微信公众平台开发,能够胜任企业级的订阅号、服务号、企业号的应用开发工作。 通过本课程的学习,学员能够对微信公众平台有一个清晰的、系统性的认识。例如,公众号是什么,它有什么特点,它能做什么,怎么开发公众号。 其次,通过本课程的学习,学员能够掌握微信公众平台开发的方法、技术和应用实现。例如,开发者文档怎么看,开发环境怎么搭建,基本的消息交互如何实现,常用的方法技巧有哪些,真实应用怎么开发。

机器学习初学者必会的案例精讲

通过六个实际的编码项目,带领同学入门人工智能。这些项目涉及机器学习(回归,分类,聚类),深度学习(神经网络),底层数学算法,Weka数据挖掘,利用Git开源项目实战等。

eclipseme 1.7.9

eclipse 出了新的eclipseme插件,官方有下载,但特慢,我都下了大半天(可能自己网速差)。有急需要的朋友可以下哦。。。

Spring Boot -01- 快速入门篇(图文教程)

Spring Boot -01- 快速入门篇 今天开始不断整理 Spring Boot 2.0 版本学习笔记,大家可以在博客看到我的笔记,然后大家想看视频课程也可以到【慕课网】手机 app,去找【Spring Boot 2.0 深度实践】的课程,令人开心的是,课程完全免费! 什么是 Spring Boot? Spring Boot 是由 Pivotal 团队提供的全新框架。Spring Boot...

HoloLens2开发入门教程

本课程为HoloLens2开发入门教程,讲解部署开发环境,安装VS2019,Unity版本,Windows SDK,创建Unity项目,讲解如何使用MRTK,编辑器模拟手势交互,打包VS工程并编译部署应用到HoloLens上等。

最简单的倍频verilog程序(Quartus II)

一个工程文件 几段简单的代码 一个输入一个输出(50Mhz倍频到100Mhz)

计算机组成原理实验教程

西北工业大学计算机组成原理实验课唐都仪器实验帮助,同实验指导书。分为运算器,存储器,控制器,模型计算机,输入输出系统5个章节

4小时玩转微信小程序——基础入门与微信支付实战

这是一个门针对零基础学员学习微信小程序开发的视频教学课程。课程采用腾讯官方文档作为教程的唯一技术资料来源。杜绝网络上质量良莠不齐的资料给学员学习带来的障碍。 视频课程按照开发工具的下载、安装、使用、程序结构、视图层、逻辑层、微信小程序等几个部分组织课程,详细讲解整个小程序的开发过程

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

基于RSA通信密钥分发的加密通信

基于RSA通信密钥分发的加密通信,采用pycrypto中的RSA、AES模块实现

不同变质程度煤尘爆炸残留气体特征研究

为分析不同变质程度煤尘爆炸残留气体成分的特征规律,利用水平管道煤尘爆炸实验装置进行了贫瘦煤、肥煤、气煤、长焰煤4种不同变质程度的煤尘爆炸实验,研究了不同变质程度煤尘爆炸后气体残留物含量的差异,并对气体

设计模式(JAVA语言实现)--20种设计模式附带源码

课程亮点: 课程培训详细的笔记以及实例代码,让学员开始掌握设计模式知识点 课程内容: 工厂模式、桥接模式、组合模式、装饰器模式、外观模式、享元模式、原型模型、代理模式、单例模式、适配器模式 策略模式、模板方法模式、观察者模式、迭代器模式、责任链模式、命令模式、备忘录模式、状态模式、访问者模式 课程特色: 笔记设计模式,用笔记串连所有知识点,让学员从一点一滴积累,学习过程无压力 笔记标题采用关键字标识法,帮助学员更加容易记住知识点 笔记以超链接形式让知识点关联起来,形式知识体系 采用先概念后实例再应用方式,知识点深入浅出 提供授课内容笔记作为课后复习以及工作备查工具 部分图表(电脑PC端查看):

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

软件测试2小时入门

本课程内容系统、全面、简洁、通俗易懂,通过2个多小时的介绍,让大家对软件测试有个系统的理解和认识,具备基本的软件测试理论基础。 主要内容分为5个部分: 1 软件测试概述,了解测试是什么、测试的对象、原则、流程、方法、模型;&nbsp; 2.常用的黑盒测试用例设计方法及示例演示;&nbsp; 3 常用白盒测试用例设计方法及示例演示;&nbsp; 4.自动化测试优缺点、使用范围及示例‘;&nbsp; 5.测试经验谈。

几率大的Redis面试题(含答案)

本文的面试题如下: Redis 持久化机制 缓存雪崩、缓存穿透、缓存预热、缓存更新、缓存降级等问题 热点数据和冷数据是什么 Memcache与Redis的区别都有哪些? 单线程的redis为什么这么快 redis的数据类型,以及每种数据类型的使用场景,Redis 内部结构 redis的过期策略以及内存淘汰机制【~】 Redis 为什么是单线程的,优点 如何解决redis的并发竞争key问题 Red...

手把手实现Java图书管理系统(附源码)

【超实用课程内容】 本课程演示的是一套基于Java的SSM框架实现的图书管理系统,主要针对计算机相关专业的正在做毕设的学生与需要项目实战练习的java人群。详细介绍了图书管理系统的实现,包括:环境搭建、系统业务、技术实现、项目运行、功能演示、系统扩展等,以通俗易懂的方式,手把手的带你从零开始运行本套图书管理系统,该项目附带全部源码可作为毕设使用。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/27513 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程2年有效观看时长,大家可以抓紧时间学习后一起讨论哦~ 【学员专享增值服务】 源码开放 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化

jsp+servlet入门项目实例

jsp+servlet实现班级信息管理项目

winfrom中嵌套html,跟html的交互

winfrom中嵌套html,跟html的交互,源码就在里面一看就懂,很简单

Java面试题大全(2020版)

发现网上很多Java面试题都没有答案,所以花了很长时间搜集整理出来了这套Java面试题大全,希望对大家有帮助哈~ 本套Java面试题大全,全的不能再全,哈哈~ 一、Java 基础 1. JDK 和 JRE 有什么区别? JDK:Java Development Kit 的简称,java 开发工具包,提供了 java 的开发环境和运行环境。 JRE:Java Runtime Environ...

python实现数字水印添加与提取及鲁棒性测试(GUI,基于DCT,含测试图片)

由python写的GUI,可以实现数字水印的添加与提取,提取是根据添加系数的相关性,实现了盲提取。含有两种攻击测试方法(高斯低通滤波、高斯白噪声)。基于python2.7,watermark.py为主

Xshell6完美破解版,亲测可用

Xshell6破解版,亲测可用,分享给大家。直接解压即可使用

你连存活到JDK8中著名的Bug都不知道,我怎么敢给你加薪

CopyOnWriteArrayList.java和ArrayList.java,这2个类的构造函数,注释中有一句话 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 public ArrayList(Collection&lt;? ...

相关热词 c#框体中的退出函数 c# 按钮透明背景 c# idl 混编出错 c#在位置0处没有任何行 c# 循环给数组插入数据 c# 多线程死锁的例子 c# 钉钉读取员工排班 c# label 不显示 c#裁剪影像 c#工作进程更新ui
立即提问