09 2017 档案
摘要:fr = open('test.txt' , 'r',encoding='utf-8')s = fr.read()s=s.lower()s=s.replace('\n',' ')word=s.split(' ')dic={}keys=set(word)for i in keys: dic[i]=word.count(i)wc = list(dic.items())wc.sort(key = ...
阅读全文
摘要:import jiebafr = open('tridebody.txt','r',encoding = 'utf-8')str = fr.read()fr.close()words = jieba.cut(str)words = list(words)print('{0:-^50)'.format
阅读全文
摘要:fr = open('test.txt' , 'r',encoding='utf-8')s = fr.read()s=s.lower()s=s.replace('\n',' ')word=s.split(' ')dic={}keys=set(word)for i in keys: dic[i]=word.count(i)wc = list(dic.items())wc.sort(key = ...
阅读全文
摘要:1. d={'001':'88','002':'84','003':'89','004':'86','005':'82'}>>> d['002']'84'>>> d.get('003') SyntaxError: unexpected indent>>> d.get('003')'89'>>&
阅读全文
摘要:s='''every night in my dreams i see you, i feel you,that is how i know you go on far across the distance and spaces between us you have come to show y
阅读全文
摘要:1.恺撒密码的编码 plaincode=input('明文')print('密文',end='')for i in plaincode:print(chr(ord(i)+3),end='') 2.国家名称 GDP总量(人民币亿元) print('国家名称 GDP总量(人民币亿元)')print('{
阅读全文
摘要:1.s="星期一星期二星期三星期四星期五星期六星期日" >>> d=int(input('1-7:'))1-7:5>>> print(s[3*(d-1):3*d])星期五 2. 输入学号,识别年级、专业、班级、序号 s=input('输入学号:')print('年级是:',s[:4])print('
阅读全文
摘要:a: import turtle turtle.setup(600,400,0,0) turtle.color("yellow") turtle.bgcolor("red") turtle.fillcolor("yelllow") turtle.up() turtle.goto(-250,75) t
阅读全文
摘要:1.import turtle turtle.circle(20) turtle.circle(30) turtle.circle(40) 2. import turtle>>> turtle.circle(20)>>> turtle.up()>>> turtle.goto(0,-20)>>> tu
阅读全文
摘要:1. print('hollo world') name = input('输入你的名字:') 2. print('两数相加的结果是:%.1f'%(float(input('num1:'))+float(input('num2')))) 3. r = input('输入这个圆的半径:') print
阅读全文
摘要:1.信息与数据的区别是什么? 信息是具有关联性和目的性的机构化,组织化的数据,数据是记录客观事物的,可鉴别的符号,数据是信息的体现形式。 2.信息与知识的区别是什么? 知识是对信息的进一步加工和应用,是对事物内在规律和原理的认识。 3.举一个同一主题不同级别的数据、信息、知识、智慧的实例。 淘宝官网
阅读全文
浙公网安备 33010602011771号