程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Universities complete Python tasks

編輯:Python

1. Please use random function to generate 20 That's ok , Each row 10 A digital , The number range is 1-100 Between random integers stored in the file random.txt in , Programming to find the mode of these integers and output , Mode is the number that appears most in a group .

2.《 A dream of red mansions 》 It is one of the four famous works , Save its text in hongloumeng.txt In file , Write a program to count the number of characters in each character of this article ( Line breaks and spaces are not counted ), Characters and occurrences are separated by colons , Save the results in a file PY7_1.txt in , And sort the number of characters obtained , Rank top 10 The common characters of are saved in PY_2.txt in .


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved