# Initialize your program, lots of code here, get token/id, setup other variables
def process_input(input_text):
# clean input text
# get response from web bot
response = requests.get('url')
# clean response and then print it/redirect it
return response
if __name__=='__main__':
while True:
user_input = raw_input()
print(process_input(user_input))
# also add some terminal conditions like if user types 'bye', break while loop and exit
这是一个可能的程序结构-
相关问题 更多 >
编程相关推荐