顯然,我的代碼有問題。當我使用Python 3.3.3 Shell運行下面的模塊時,出現錯誤SyntaxError: expected an indented block
。然後,第7行SyntaxError:預計會出現縮進塊
def user_input():
print('[1]: ASCII to Binary')
print('[2]: Binary to ASCII')
user_input = input('Please choose [1] or [2]: ')
if user_input == ('1', '[1]'):
#
elif user_input == ('2', '[2]'):
#
else:
print('Please enter a valid input...')
user_input()
用'pass's更換'#'秒。 – arshajii