摘要:
f = open('Farmer.txt',mode='r',encoding='utf-8') fText = f.read() f.close() replacelist = ['.', ',', "'", '"', '?','\n','\ufeffChapter'] for c in repl 阅读全文
摘要:
id = '440802199708230442' area = id[0:6] birthday = id[6:14] sex = id[-2] print('市区是:'+area+'\n生日是:'+birthday) if(int(sex) % 2 == 0): print('girl') else: print('boy') for i in range(12):... 阅读全文
摘要:
while True: a =int(input('摄氏温度转换为华氏温度请按 1\n华氏温度转换为摄氏温度请按 2\n')) if a==1: c = float(input('请输入摄氏温度:')) f = c*9/5+32 print('摄氏{:.2f}的华氏为{:.2f}'.format(c,f)) elif a==... 阅读全文