You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

01_01.py 804 B

123456789101112131415161718192021222324252627
  1. #1.1 字符串:给定一个文章,找出每个单词的出现次数。例如给定下面的一篇短文,进行操作。
  2. str = "One is always on a strange road, watching strange scenery and listening to strange music. \
  3. Then one day, you will find that the things you try hard to forget are already gone. "
  4. n = len(str)
  5. #跳过列表
  6. skip_list = [' ','.','\n','\t']
  7. #记录单词和出现次数
  8. word_dict = dict()
  9. i = 0
  10. while i < n-1:
  11. if str[i] in skip_list:
  12. i += 1
  13. #读取一个单词
  14. word = ''
  15. while str[i] not in skip_list:
  16. word = word + str[i]
  17. i += 1
  18. #更新单词列表
  19. if word in word_dict:
  20. word_dict[word] += 1
  21. else:
  22. word_dict[word] = 1
  23. #删除空元素
  24. del word_dict['']
  25. print(word_dict)

机器学习越来越多应用到飞行器、机器人等领域,其目的是利用计算机实现类似人类的智能,从而实现装备的智能化与无人化。本课程旨在引导学生掌握机器学习的基本知识、典型方法与技术,通过具体的应用案例激发学生对该学科的兴趣,鼓励学生能够从人工智能的角度来分析、解决飞行器、机器人所面临的问题和挑战。本课程主要内容包括Python编程基础,机器学习模型,无监督学习、监督学习、深度学习基础知识与实现,并学习如何利用机器学习解决实际问题,从而全面提升自我的《综合能力》。