摘要:
#1, FFile = open('F.txt','r') FTest = FFile.read() FFile.close() print(FTest) #2, print(FTest.replace(',',' ')) print(FTest.replace("'",' ')) print(FT 阅读全文
2018年6月20日
2018年6月13日
2018年6月6日
摘要:
l = ['Lucy','Abb','Lily'] l.append('Abb') l.pop() print(1) t = ('Lucy','Abb','Lily') scores = [60,78,90] d = {'Lucy':60,'Abb':78,'Lily':90} d['Abb'] = 阅读全文
2018年5月30日
摘要:
fr = open('letter.txt',mode='r',encoding='utf-8') plaincode = fr.read() print('明文:' + plaincode) print('密文:',end='') for c in plaincode: print(chr(ord(c)+3),end='') import turtle colors=['ye... 阅读全文
2018年5月23日
2018年5月16日
2018年5月9日
摘要:
import turtle turtle.bgcolor('red') turtle.pencolor('yellow') turtle.fillcolor('yellow') turtle.begin_fill() for i in range(5): turtle.forward(100) tu 阅读全文
2018年5月2日
摘要:
myNumber = 18 while True: guess = int(input('请输入一个数字:')) if guess > myNumber: print('输入的数字过大:') elif guess >> import turtle >>> turtle.circle >>> turtle.circle(120) >>> turtle.c... 阅读全文
2018年4月25日
摘要:
while True: a = int(input('摄氏转华氏请按 1\n华氏转摄氏请按 2\n退出请按 3\n')) if a==1: c = float(input('请输入摄氏温度:')) f = c*9/5+32 print('摄氏{:.2f}的华氏为{:.2f}\n'.format(c, 阅读全文
2018年4月22日
摘要:
a=input('请输入一个数字:') b=input('请再输入一个数字') sum2=int(a)+int(b) print('两个数字的和是:{}'.format(sum2)) a=input('请输入一个摄氏温度') sum2=int(a)*9/5+32 print('转换的华氏温度是:{}'.format(sum2)) 阅读全文