(void)foo 用于说明变量 foo
(void)foo
foo
static int callback(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi) { (void) offset; (void) fi; ...
如何在Python中正确地实现这一点?比如,当按行迭代一个表时,有一个不需要的列 func ,Python的叫嚣方式是什么 这里没有要求吗?代码如下:
func
for no, msg, func in TABLE: print(f'[{no}] {msg}')
我相信您正在寻找下划线,它几乎符合您所想的目的。
在下面的示例中, _
_
for _ in range(10): print("Hello world")
You can take a look at this question for more details