https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.optimize.fmin_tnc.html声明其模块如下:
@zip.command(aliases=['sd'])
@commands.has_role('Mods')
async def shutdown(ctx):
await ctx.message.delete()
intro = zip.get_channel(631272968093433856)
await ctx.channel.set_permissions(ctx.guild.default_role, send_messages=False)
suggestions = zip.get_channel(631881727064801280)
await ctx.channel.set_permissions(ctx.guild.default_role, send_messages=False)
general = zip.get_channel(630907637919121420)
await ctx.channel.set_permissions(ctx.guild.default_role, send_messages=False)
memes = zip.get_channel(631273005489586176)
await ctx.channel.set_permissions(ctx.guild.default_role, send_messages=False)
wholesome_me = zip.get_channel(631273030265602090)
await ctx.channel.set_permissions(ctx.guild.default_role, send_messages=False)
music_d = zip.get_channel(631273090260926475)
await ctx.channel.set_permissions(ctx.guild.default_role, send_messages=False)
no_mic = zip.get_channel(631273262047035413)
await ctx.channel.set_permissions(ctx.guild.default_role, send_messages=False)
bot_com = zip.get_channel(631273294170947605)
await ctx.channel.set_permissions(ctx.guild.default_role, send_messages=False)
await ctx.send("**SERVER HAS BEEN LOCKED DOWN**")
此模块声明“是否”正确?
@NgModule({
exports: [SvgViewer],
declarations: [SvgViewer],
})
因为它使用 imports: [HttpClientModule]
?通用模块中的IIUC应该声明其依赖性。
答案 0 :(得分:2)
不。因为它已导入到已经导入HttpClientModule的模块中,所以依赖项注入程序已经知道HttpClientModule。参见(https://github.com/angular/material.angular.io/blob/051363fff1f993dd77f70ea9ebf917fbc3f99426/src/app/app-module.ts)