32位固定点数和浮点数转换deffloat2bin(file,pointLocation ) :rawnums=[]withopen(file,' r ' ) as f: line=f.read ).stthop ' _bin ' ) fileout=''.join ) withopen ) fileout, ' w ' ) ASF : foritemsinrawnums 3360 temp=float (items ) (* (2 ** pointLocation ) num_str=list ) (() 653360032b ).0b 11111111 _ 1111111 _ 111111111 (11111111111 ) poinnning 'r ' ) asf:line=f.read(.strip ) ) rawnums=line.split((n ' ) filel=list(file ) filel.insert ) ' w ' ) ASF : foritemsinrawnums 3360 if items (0)='0'0) ) )2) print(temp ) else:itemsl=list ) items 输入枚举(itemsl ) : ifi=='0' : items out [ epoch ]='1' else 3360 items out [ epoch ]='0' items='.jp och