我有以下代碼: >>> s = 'https://www.microsoft.com/ja-jp/store/tv/%E7%BE%8E%E7%94%B7-%E3%82%A4%E3%82%B1%E3%83%A1%E3%83%B3-%E3%82%B9%E3%82%BF%E3%83%BC%E8%AA%95%E7%94%9F-%E3%83%8E%E3%83%BC%E3%82%AB%E3%83%83%E3%
我是python的新手,並且遇到輸入問題。 當我使用命令userName = input('What is your name? ') 它說是這樣的: >>> userName = input('What is your name? ')
What is your name? Name
Traceback (most recent call last):
File "<stdin>"
alphabets ="abcdefghijklmnopqrstuvwxyz"
def calculation(text,alphabets):
sample_list = []
total_counter = 0
for element in text:
if element != " ":
total_counter += 1