新零售,英文是New Retailing,即企业以互联网为依托,通过运用大数据、人工智能等先进技术手段,对商品的生产、流通与销售过程进行升级改造,进而重塑业态结构与生态圈,并对线上服务、线下体验以及现代物流进行深度融合的零售新模式
The new retail model refers to a model in which individuals and enterprises, relying on the Internet, upgrade and transform the production, circulation and sales process of goods by using advanced technology such as big data and artificial intelligence, and then reshape the business structure and ecosystem, and deeply integrate online services, offline experience and modern logistics.
#Web3.toHex(primary=None,hexstr=None,text=None)
#接受各种输入并以其十六进制表示形式返回。它遵循JSON-RPC规范
#def to_hex(
#primitive:Primitives=None,hexstr:HexStr=None,text:str=None
#)->HexStr:
print(Web3.toHex(10))#0xa
print(Web3.toHex(hexstr='0x00'))#0x00
print(Web3.toHex(text='asimov'))#0x6173696d6f76
#Web3.toText(primary=None,hexstr=None,text=None)
#接受各种输入并返回其等效字符串。文本被解码为UTF-8。
print(Web3.toText('0x1254'))#T
print(Web3.toText('0x6173696d6f76'))#asimov
print(Web3.toText(b'asimx6fx76'))#asimov
print(Web3.toText('6173696d6f76'))#asimov
#Web3.toBytes(primary=None,hexstr=None,text=None)
#接受各种输入并返回等效的字节数。文本被编码为UTF-8。
print(Web3.toBytes(0))#b'x00'
print(Web3.toBytes(b'sasas'))#b'sasas'
print(Web3.toBytes(hexstr='000F'))#b'x00x0f'
print(Web3.toBytes(hexstr='0x000F'))#b'x00x0f'
print(Web3.toBytes(text='asimov'))#b'asimov'
#Web3.toInt(primary=None,hexstr=None,text=None)
#接受各种输入并返回其等效的整数
print(Web3.toInt(0))#0
print(Web3.toInt(0x00f))#15
print(Web3.toInt(b'x00x0F'))#15
print(Web3.toInt(hexstr='0x00F'))#15
#ValueError:invalid literal for int()with base 10:'sa'
#text:interpret as string of digits,like'12'=>12
print(Web3.toInt(text='10'))#10
#Web3.toJSON(obj)obj:Dict[Any,Any]
#接受各种输入并返回等效的JSON。
print(Web3.toJSON({'asimov':'da'}))#{"asimov":"da"}