gpt4 book ai didi

python - 如何居中python打印

转载 作者:太空宇宙 更新时间:2023-11-04 01:20:07 24 4
gpt4 key购买 nike

<分区>

我有一个字符串如下

string = "I went to the market the other day"
vowels = "AEIOUaeiou"
vcount = 0

for letter in string:
vcount+=1
print ("Vowels:", vcount)

我如何使用 string.center 将打印数据居中

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com