INNER CODE UNIT · Python

count

TechXueXi/TechXueXi · SourcePackages/challengeAnswerBank.py:99

		count = count + 1
		question = input("开始第{}次挑战答题,请输入题目(输入`exit`退出答题):".format(count))
		if question == 'exit':
			break
		data = search(keyword = question)
		print(color.yellow("共查询到{}条数据如下:".format(data['total'])))
		for i in range(len(data['rows'])):
			print("Question{}:{}\nAnswer:{}\n".format(i+1, data['rows'][i]['question'], color.green(data['rows'][i]['answer'])))


View source record →

📰 Research Paper
Loading…
⏳ Fetching content…