综合练习:词频统计

fo = open("new.txt","r")
srt=fo.read()
fo.close()
#替换分割符
sep = """,."?!:()"""
for i in sep:
    srt = srt.replace(i, " ")
#转换为小写并转化为单词列表
wordList = srt.lower().split()
#转换为字典
wordDict = {}
for i in wordList:
    wordDict[i] = wordDict.get(i, 0)+1
#删除不参与统计的词
sep=["the","for","to","of","a","in","with","on","and","that","an"]
for i in sep:
    wordDict.pop(i)
#排序
wordList = sorted(wordDict.items(), key=lambda X: X[1], reverse=True)
for i in range(20):
    print(wordList[i])
As internet technologies have been increasingly applied in the cultural field, vigorous growth in recent years has marked China's cultural programs and industries.
In this year's government work report, Premier Li Keqiang frequently referred to internet-related concepts, like Internet Plus, artificial intelligence, and Digital China, and noted that the Chinese government will give priority to "providing more and better online content".
During the two sessions, many NPC deputies and CPPCC members showed great concern over the problems facing the internet culture industry and weighed in with suggestions.
Pony Ma Huateng, chairman and CEO of Chinese social media and gaming titan Tencent Holdings Ltd, and an NPC deputy, brought eight suggestions to the top legislature, including using the Internet Plus strategy to build the country into a Digital China and an Internet Power based on the integration of digital technologies and culture. He also pointed out the importance of creating cultural IPs (intellectual properties) with Chinese characteristics and promoting the coordinated development of cultural industries with other social sectors.
Promoting traditional fine culture on the internet was another key issue discussed during the two sessions. Gong Hanlin, a famous comedian and a CPPCC member, said that although our literature and arts have kept thriving, it's not hard to find live streaming programs and micro videos fraught with dross, which pose a great hazard to younger people. Gong argued that we need to crack down on vulgar productions and kitsch in cyber space and promote fine traditional Chinese culture, on which the country's young country can thrive.
Ding Lei, CEO of NetEase Inc and a CPPCC member, noted quality online content is still inadequate. To produce and popularize more quality digital cultural content, the communication capabilities of the internet companies can be capitalized on if they are closely integrated with content production organizations, according to the CPPCC member.
Ding also said it's necessary to further construct a public cultural service system led by the government with the participation of social forces, and that the digitalization of books should be high on the agenda. He argued that with more books carrying fine traditional Chinese culture digitalized and a special online lending system established, quality cultural content can be accessible to the wider public.
Recent years also have witnessed the online gaming and live-streaming industries take off with ever-expanding markets. Statistics show that with annual revenues up to 203.61 billion yuan in 2017, China's game industry topped the world gaming market.
However, the extensive development of the online gaming industry has caused many problems, especially violence and sexual elements in the games targeted at teenagers. Therefore, NPC deputy Li Xiuxiang, offered suggestions on building a clear cyber space, including introducing an effective real-name system and an anti-addiction system for those underage, further developing the review mechanism of game content, and establishing an industry self-discipline system.
NPC deputy Chen Naike put forward several suggestions in a bid to curb the infringement of copyright and the law on the live streaming platforms. Chen said the government needs to step up efforts to pass laws and regulations to better administrate online interactive live broadcasting, set up a multi-agency supervision mechanism, and strengthen the industry's self-discipline system, as well as encourage public supervision.

 

转载于:https://www.cnblogs.com/hehe2333/p/8649587.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值