weixin_39664995的博客for_inlist中的下划线_只是一个临时的循环变量,因为_是合法的变量名for _ in [1, 2, 3]:print(_)li = [[0, 1] for _ in range(3)]tu1= ([0, 1] for _ in range(3)) #()返回生成器, 而不是列表tu2 = list([0, 1] for ...
我在C#官方文档的使用属性里看到这种代码: public class Date { private int _month = 7; // Backing store public int Month { get => _month; set ... if ((value > 0) && (value &...这段代码里的_month是以下划