我正在尝试使用我的Azure功能的应用程序设置添加一些自定义绑定.我需要从我的设置中只收到一个字符串.
我想从我的设置中获得simpleValue.
{
"bindings": [
{
"name": "someValue",
"type": "stringSetting",
"connection": "simpleValue",
"direction": "in"
}
],
"disabled": false
}
Run Code Online (Sandbox Code Playgroud)
并在Run方法中获取它:
static void GetOrders(TraceWriter log, string someValue)
{
log.Info(someValue);
}
Run Code Online (Sandbox Code Playgroud)
它甚至可能吗?也许有其他方法可以做到这一点?
我想做类似的事情pip install requests --save packages.txt,这样我就可以获得我使用过的所有内容的列表,稍后pip -r install packages.txt当我从存储库克隆它时我就可以了。
我想做我可以做的一样的事情python3.6 -m http.server。我想像这样运行我的单线纸。我该怎么做呢?现在,我有:
def run():
print('Great!')
if __name__ == '__main__':
run()
Run Code Online (Sandbox Code Playgroud)
我尝试python3.6 -m fastapi过了/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6: No module named test.__main__; 'test' is a package and cannot be directly executed,
与 python3.6 -m fastapi.run /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6: No module named test.run
我想准备所有要通过FTP上传的文件.我试过命令dotnet publish -c Release -o ~/Desktop/toFtp.不幸的是,视图文件夹未被复制 有办法吗?
c# ×2
python ×2
.net-core ×1
asp.net-core ×1
azure ×1
binding ×1
ftp ×1
installation ×1
package ×1
pip ×1
publish ×1
python-3.x ×1
settings ×1