05 2020 档案

摘要:一、文件读写的读书笔记 1、概述 文件是一个存储在辅助存储器上的数据序列,可以包含任何数据内容。概念上,文件是数据的集合和抽象,类似地,函数是程序的集合和抽象。用文件形式组织和表达数据更有效也更为灵活。 2、文件的类型 文本文件和二进制文件。 二进制文件直接由比特0和比特1组成,没有统一字符编码,文 阅读全文
posted @ 2020-05-26 13:34 Song-SH 阅读(136) 评论(0) 推荐(0)
摘要:(1)完善球赛程序,测试你写的球赛程序 from random import random def printIntro(): try: print("模拟羽毛球比赛") print("学号:2019310143108") except: print("printIntro error!") def 阅读全文
posted @ 2020-05-19 13:28 Song-SH 阅读(132) 评论(0) 推荐(0)
摘要:import numpy as np import matplotlib.pyplot as plt import matplotlib matplotlib.rcParams["font.family"] = "SimHei" matplotlib.rcParams["font.sans-seri 阅读全文
posted @ 2020-05-06 13:37 Song-SH 阅读(175) 评论(0) 推荐(0)
摘要:Str = input("") for i in Str: if ord("a") <= ord(i) <= ord("z"): print(chr(ord("a")+(ord(i)-ord("a")+3)%26),end='') elif ord("A") <= ord(i) <= ord("Z" 阅读全文
posted @ 2020-05-01 16:58 Song-SH 阅读(219) 评论(0) 推荐(0)