Find Code Reviews Valuable: Try Pair Programming, You'll Love It!
others Contagious Mindset Each others’ support Let’s try it out!Quality Ownership Knowledge Evolution Transformations InnovationDo try this at home!0 码力 | 38 页 | 3.76 MB | 5 月前3The Zig Programming Language 0.12.0 Documentation
const std = @import("std"); pub fn main() !void { const stdout = std.io.getStdOut().writer(); try stdout.print("Hello, {s}!\n", .{"world"}); } Shell $ zig build-exe hello.zig $ ./hello Hello, world if its argument is false to indicate a failure. // `try` is used to return an error to the test runner to notify it that the test f try std.testing.expect(addOne(41) == 42); } test addOne { written using an identifier. // This is a doctest, and serves as documentation for `addOne`. try std.testing.expect(addOne(41) == 42); } /// The function `addOne` adds one to the number given as0 码力 | 241 页 | 7.37 MB | 1 年前3The Zig Programming Language 0.8.1 Documentation
const std = @import("std"); pub fn main() !void { const stdout = std.io.getStdOut().writer(); try stdout.print("Hello, {s}!\n", .{"world"}); } $ zig build-exe hello.zig $ ./hello Hello, world! The is the escape sequence for the newline character. The try expression evaluates the result of stdout.print. If the result is an error, then the try expression will return from main with the error. Otherwise comment, and won't be executed. //expect(false); const x = true; // another comment try expect(x); } $ zig test comments.zig Test [1/1] test "comments"... All 1 tests passed. There are0 码力 | 234 页 | 6.01 MB | 1 年前3The Zig Programming Language 0.10.1 Documentation
@import("std"); 2 3 pub fn main() !void { 4 const stdout = std.io.getStdOut().writer(); 5 try stdout.print("Hello, {s}!\n", .{"world"}); 6 } Shell 1 $ zig build-exe hello.zig 2 3 $ ./hello is the escape sequence for the newline character. The try expression evaluates the result of stdout.print . If the result is an error, then the try expression will return from main with the error. Otherwise if its argument is false to indicate a failure. 8 // `try` is used to return an error to the test runner to notify it that the t 9 try std.testing.expect(addOne(41) == 42); 10 } 11 12 /// The0 码力 | 239 页 | 8.03 MB | 1 年前3The Zig Programming Language 0.11.0 Documentation
@import("std"); 2 3 pub fn main() !void { 4 const stdout = std.io.getStdOut().writer(); 5 try stdout.print("Hello, {s}!\n", .{"world"}); 6 } Shell $ zig build-exe hello.zig $ ./hello Hello, is the escape sequence for the newline character. The try expression evaluates the result of stdout.print . If the result is an error, then the try expression will return from main with the error. Otherwise if its argument is false to indicate a failure. 8 // `try` is used to return an error to the test runner to notify it that the t 9 try std.testing.expect(addOne(41) == 42); 10 } 11 12 test addOne0 码力 | 238 页 | 7.80 MB | 1 年前3The Zig Programming Language 0.9.1 Documentation
@import("std"); 2 3 pub fn main() !void { 4 const stdout = std.io.getStdOut().writer(); 5 try stdout.print("Hello, {s}!\n", .{"world"}); 6 } Shell 1 $ zig build-exe hello.zig 2 3 $ ./hello is the escape sequence for the newline character. The try expression evaluates the result of stdout.print . If the result is an error, then the try expression will return from main with the error. Otherwise if its argument is false to indicate a failure. 8 // `try` is used to return an error to the test runner to notify it that the t 9 try std.testing.expect(addOne(41) == 42); 10 } 11 12 /// The0 码力 | 234 页 | 7.90 MB | 1 年前3Celery v5.0.5 Documentation
host name starting with an IP address, (e.g., 23.10.112.31.comcast.net). In this case RabbitMQ will try to use rabbit@23: an illegal host name. Starting/Stopping the RabbitMQ server To start the server: verify that your configuration file works properly and doesn’t contain any syntax errors, you can try to import it: $ python -m celeryconfig For a complete reference of configuration options, see Configuration optimal number depends on a number of factors, but if your tasks are mostly I/O-bound then you can try to increase it. Experimentation has shown that adding more than twice the number of CPU’s is rarely0 码力 | 2315 页 | 2.14 MB | 1 年前3Celery v5.0.2 Documentation
host name starting with an IP address, (e.g., 23.10.112.31.comcast.net). In this case RabbitMQ will try to use rabbit@23: an illegal host name. Starting/Stopping the RabbitMQ server To start the server: verify that your configuration file works properly and doesn’t contain any syntax errors, you can try to import it: $ python -m celeryconfig For a complete reference of configuration options, see Configuration optimal number depends on a number of factors, but if your tasks are mostly I/O-bound then you can try to increase it. Experimentation has shown that adding more than twice the number of CPU’s is rarely0 码力 | 2313 页 | 2.14 MB | 1 年前3Celery v5.0.1 Documentation
host name starting with an IP address, (e.g., 23.10.112.31.comcast.net). In this case RabbitMQ will try to use rabbit@23: an illegal host name. Starting/Stopping the RabbitMQ server To start the server: verify that your configuration file works properly and doesn’t contain any syntax errors, you can try to import it: $ python -m celeryconfig For a complete reference of configuration options, see Configuration optimal number depends on a number of factors, but if your tasks are mostly I/O-bound then you can try to increase it. Experimentation has shown that adding more than twice the number of CPU’s is rarely0 码力 | 2313 页 | 2.13 MB | 1 年前3Celery v5.0.0 Documentation
host name starting with an IP address, (e.g., 23.10.112.31.comcast.net). In this case RabbitMQ will try to use rabbit@23: an illegal host name. Starting/Stopping the RabbitMQ server To start the server: verify that your configuration file works properly and doesn’t contain any syntax errors, you can try to import it: $ python -m celeryconfig For a complete reference of configuration options, see Configuration optimal number depends on a number of factors, but if your tasks are mostly I/O-bound then you can try to increase it. Experimentation has shown that adding more than twice the number of CPU’s is rarely0 码力 | 2309 页 | 2.13 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100