擅长:python、mysql、java
<p>为了简化设置,考虑在构建过程中使用<a href="https://angular.io/cli" rel="nofollow noreferrer">Angular CLI</a>将所有文件放在分发目录中,即通过在角度.json. 你可以使用角度.json<code>assets</code>部分在构建期间移动Python文件。在</p>
<h2>在角度.json在</h2>
<pre><code>"your-project": {
"root": "your-project-directory",
"sourceRoot": "your-project-directory/src",
"projectType": "application",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist",
"index": "your-project-directory/src/index.html",
"main": "your-project-directory/src/main.ts",
...
"assets": [
{
"glob": "**/*",
"input": "your-project-directory/src/assets/",
"output": "assets"
},
{
"glob": "**/*",
"input": "your-project-directory/src/python/",
"output": "."
}
</code></pre>
<p><br/></p>
<hr/>
<p>把你的cd4{cd4{3>和你的基本目录放在一起。注意<b>静态代理</b>以确保支持文件得到服务。在</p>
<h2>在主.py在</h2>
^{pr2}$