- 博客(5)
- 收藏
- 关注
转载 No.4 文件断点续传(Server)
import socketserver, os , json , struct, hashlib codes = { "文件已存在":1001, "文件不存在":1002 } File_Path = r'C:\Users\17303\Desktop\电脑的组成.avi' #需要传的文件路径 File_Size = os.path.getsize(F...
2019-07-30 18:32:00
133
转载 No.4 文件断点续传(Client)
import socket, json, struct, hashlib, os, shutil codes = { "文件已存在":1001, "文件不存在":1002 } ''' 后开始 1.接收字典的长度; 2.利用字典的长度来接收字典(FileName,File_md5值,FileSize) 3.利用File_md5值判断需下载的文件是否...
2019-07-30 18:30:00
92
转载 No.3 Timed Shutdown
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 ==...
2019-07-18 12:19:00
112
转载 No.2 Calculatior
1 import re 2 class Calculator(): 3 ''' 4 Calculator 5 ''' 6 def run(self, equation): 7 ''' 8 main 9 ''' 10 equation = equation...
2019-07-15 07:40:00
111
转载 No.1Register/login
import pickle def register(): print("---Register---") print("Please input your username :") username = input("") print("Please input your password :") password = inp...
2019-07-14 15:11:00
1046
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人