go

module
v0.0.0-...-686c690 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2021 License: Apache-2.0

README

Go

Go程序设计语言>>书后练习题
未完待续 …

Directories

Path Synopsis
ch1
Exercise-1-1
Exercise 1.1: Modify the echo program to also print os.Args[0], the name of the command that invoked it.
Exercise 1.1: Modify the echo program to also print os.Args[0], the name of the command that invoked it.
Exercise-1-10
Exercise 1.10: Find a web site that produces a large amount of data.
Exercise 1.10: Find a web site that produces a large amount of data.
Exercise-1-11
Exercise 1.11: Try fetchall with longer argument lists, such as samples from the top million web sites available at alexa.com.
Exercise 1.11: Try fetchall with longer argument lists, such as samples from the top million web sites available at alexa.com.
Exercise-1-12
Exercise 1.12: Modify the Lissajous server to read parameter values from the URL.
Exercise 1.12: Modify the Lissajous server to read parameter values from the URL.
Exercise-1-2
Exercise 1.2: Modify the echo program to print the index and value of each of its arguments, one per line.
Exercise 1.2: Modify the echo program to print the index and value of each of its arguments, one per line.
Exercise-1-4
Exercise 1.4: Modify dup2 to print the names of all files in which each duplicated line occurs.
Exercise 1.4: Modify dup2 to print the names of all files in which each duplicated line occurs.
Exercise-1-5
Exercise 1.5: Change the Lissajous program’s color palette to green on black,for added authenticity.
Exercise 1.5: Change the Lissajous program’s color palette to green on black,for added authenticity.
Exercise-1-6
Exercise 1.6: Modify the Lissajous program to produce images in multiple colors by adding more values to palette and then displaying them by changing the third argument of Set- ColorIndex in some interesting way.
Exercise 1.6: Modify the Lissajous program to produce images in multiple colors by adding more values to palette and then displaying them by changing the third argument of Set- ColorIndex in some interesting way.
Exercise-1-7
Exercise 1.7: The function call io.Copy(dst, src) reads from src and writes to dst.
Exercise 1.7: The function call io.Copy(dst, src) reads from src and writes to dst.
Exercise-1-8
Exercise 1.8: Modify fetch to add the prefix http:// to each argument URL if it is missing.
Exercise 1.8: Modify fetch to add the prefix http:// to each argument URL if it is missing.
Exercise-1-9
Exercise 1.9: Modify fetch to also print the HTTP status code, found in resp.Status.
Exercise 1.9: Modify fetch to also print the HTTP status code, found in resp.Status.
ch2
Exercise-2-1/tempconv
Package tempconv ...
Package tempconv ...
Exercise-2-2
Exercise 2.2: Write a general-purpose unit-conversion program analogous to cf that reads numbers from its command-line arguments or from the standard input if there are no argu- ments, and converts each number into units like temperature in Celsius and Fahrenheit,length in feet and meters, weight in pounds and kilograms, and the like.
Exercise 2.2: Write a general-purpose unit-conversion program analogous to cf that reads numbers from its command-line arguments or from the standard input if there are no argu- ments, and converts each number into units like temperature in Celsius and Fahrenheit,length in feet and meters, weight in pounds and kilograms, and the like.
Exercise-2-3/popcount
Package popcount ...
Package popcount ...
ch3
Exercise-3-1
Exercise 3.1: If the function f returns a non-finite float64 value, the SVG file will contain invalid <polygon> elements (although many SVG renderers handle this gracefully).
Exercise 3.1: If the function f returns a non-finite float64 value, the SVG file will contain invalid <polygon> elements (although many SVG renderers handle this gracefully).
Exercise-3-2
Exercise 3.2: Experiment with visualizations of other functions from the math package.
Exercise 3.2: Experiment with visualizations of other functions from the math package.
Exercise-3-3
Exercise 3.3: Color each polygon based on its height, so that the peaks are colored red (#ff0000) and the valleys blue (#0000ff).
Exercise 3.3: Color each polygon based on its height, so that the peaks are colored red (#ff0000) and the valleys blue (#0000ff).
Exercise-3-5
Exercise 3.5: Implement a full-color Mandelbrot set using the function image.
Exercise 3.5: Implement a full-color Mandelbrot set using the function image.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL