日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)Python教程:pythonpoetry如何創(chuàng)建項(xiàng)目

1、可以通過命令poetrynew創(chuàng)建項(xiàng)目手腳架。

 poetry new example
 tree
.
└── example
    ├── example
    │   └── __init__.py
    ├── pyproject.toml
    ├── README.rst
    └── tests
        ├── __init__.py
        └── test_example.py
 
3 directories, 5 files

2、Poetry創(chuàng)建了example項(xiàng)目,生成了相應(yīng)的文件夾和pyproject.toml,包括項(xiàng)目信息。

在現(xiàn)有項(xiàng)目中,通過命令poetryinit進(jìn)行初始化。

  example poetry init
 
This command will guide you through creating your pyproject.toml config.
# 交互bash, 通過該交互bash填寫項(xiàng)目信息。
Package name [example]:  example
Version [0.1.0]:  0.0.8
Description []:  example project
Author [so1n , n to skip]:  n
License []:  
Compatible python versions [^3.7]:  
 
Would you like to define your main dependencies interactively? (yes/no) [yes] no
Would you like to define your development dependencies interactively? (yes/no) [yes] no
Generated file
# 填寫完項(xiàng)目信息后會生成以下內(nèi)容, 之后會在剛才的路徑創(chuàng)建pyproject.toml文件, 并寫入。
[tool.poetry]
name = "example"
version = "0.0.8"
description = "example project"
authors = ["Your Name "]
 
[tool.poetry.dependencies]
python = "^3.7"
 
[tool.poetry.dev-dependencies]
 
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
 
 
Do you confirm generation? (yes/no) [yes] yes

以上就是python poetry創(chuàng)建項(xiàng)目的方法,希望對大家有所幫助。更多Python學(xué)習(xí)指路:創(chuàng)新互聯(lián)python教程

本文教程操作環(huán)境:windows7系統(tǒng)、Python 3.9.1,DELL G3電腦。


分享題目:創(chuàng)新互聯(lián)Python教程:pythonpoetry如何創(chuàng)建項(xiàng)目
標(biāo)題鏈接:http://www.5511xx.com/article/djpddgh.html