我已经安装了Cygwin。我需要chere软件包,但安装时它不在Shells类别中。现在在哪 或者我怎么能得到这个?
我正在尝试配置Jenkins在美国东部时间下午2点发送电子邮件到我们的分发列表.我看到的电子邮件插件的唯一选择是在构建失败时发送电子邮件,或者在构建失败后第一次发送电子邮件.我希望詹金斯每天下午2点发送一封电子邮件,让每个人都知道正在进行构建.
我该怎么做呢?
从这个源代码:
def numVowels(string):
string = string.lower()
count = 0
for i in range(len(string)):
if string[i] == "a" or string[i] == "e" or string[i] == "i" or \
string[i] == "o" or string[i] == "u":
count += 1
return count
print ("Enter a statement: ")
strng = input()
print ("The number of vowels is: " + str(numVowels(strng)) + ".")
Run Code Online (Sandbox Code Playgroud)
运行时出现以下错误:
Enter a statement:
now
Traceback (most recent call last):
File "C:\Users\stevengfowler\exercise.py", line 11, in <module>
strng = input()
File "<string>", line …Run Code Online (Sandbox Code Playgroud)