摘要: import socketserver, os , json , struct, hashlib codes = { "文件已存在":1001, "文件不存在":1002 } File_Path = r'C:\Users\17303\Desktop\电脑的组成.avi' #需要传的文件路径 File_Size = os.path.getsize(File_Path) f =... 阅读全文
posted @ 2019-07-30 18:32 邓大帅哥 阅读(149) 评论(0) 推荐(0) 编辑
摘要: ''' 后开始 1.接收字典的长度; 2.利用字典的长度来接收字典(FileName,File_md5值,FileSize) 3.利用File_md5值判断需下载的文件是否存在。(若存在,则需要续传) 4.若文件已存在发送字典(Code,FileSize) 若文件不存在发送字典(Code,FileS 阅读全文
posted @ 2019-07-30 18:30 邓大帅哥 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1 import datetime,os 2 print("---Timed Shutdown---") 3 print("1.Timed Shutdown") 4 print("2.Cancel Scheduled Shutdown") 5 try: 6 choice = int(input("")) 7 8 if choice == 2: 9 ... 阅读全文
posted @ 2019-07-18 12:19 邓大帅哥 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1 import re 2 class Calculator(): 3 ''' 4 Calculator 5 ''' 6 def run(self, equation): 7 ''' 8 main 9 ''' 10 equation = equation.replace(' ',''... 阅读全文
posted @ 2019-07-15 07:40 邓大帅哥 阅读(197) 评论(0) 推荐(0) 编辑
摘要: import pickle def register(): print("---Register---") print("Please input your username :") username = input("") print("Please input your password :") password = input("") di... 阅读全文
posted @ 2019-07-14 15:11 邓大帅哥 阅读(296) 评论(0) 推荐(0) 编辑