摘要:
import json #json串就是字符串。 d = { 'car':{'color':'red','price':100,'count':50}, 'bus':{'color':'red','price':100,'count':50}, 'phone':{'color':'red','price':100,'count':50}, 'ipad 阅读全文
摘要:
import hashlib # md5 ybm_pwd='yuanbapqingsdfs234FF234HF@F' # m = hashlib.md5() # bytes_ybq = ybm_pwd.encode()#把字符串转成bytes类型 m.update(bytes_ybq) #加密,不能字符串,只能传bytes类型,二进制 # print(m.hexdigest()) #加密后的结果... 阅读全文
摘要:
二、datetime 阅读全文
摘要:
一、random模块 阅读全文
摘要:
一、函数是什么? 函数一词来源于数学,但编程中的「函数」概念,与数学中的函数是有很大不同的,编程中的函数在英文中也有很多不同的叫法。在BASIC中叫做subroutine(子过程或子程序),在Pascal中叫做procedure(过程)和function,在C中只有function,在Java里面叫 阅读全文