我想买域名com.co.uk前几天,但它似乎不可能。
我做了一个大名鼎鼎的节目,这就是输出所显示的:
Error for "com.co.uk".
This domain cannot be registered because it contravenes the Nominet UK
naming rules. The reason is:
third-level domains may not be identical to a top-level domain.
问题是,为什么我们不能买一个与顶级域名相同的第三级域名呢?另外,是否有办法获得此域?
我在python中有一个函数,它的输出是一个生成器:
def main_function(x):
r = get_range()
for i in range(r):
yield x+i
我想重构代码(我简化了用例,但实际的计算可能会很复杂&更长。请参阅下面的编辑)。根据我的理解,这是我应该做的,以保持功能不变:
(a)与原始代码相同的接口
def sub_function(x,r):
for i in range(r):
yield x+i
def main_function(x):