我想使用 Python 從我的 Binance Account vie API 獲取我的 Tron(TRC20)地址,但我得到的只是我的(Eth)網路地址。
**This is my code below.**
rom lib2to3.pygram import Symbols
import os
import config, csv
#and then import it in your python file with
from binance.client import Client
client = Client(config.api_key, config.api_secret)
address = client.get_deposit_address(tag='', coin='USDT')\
USDTron = (address.get('TRC20'))\
結果:
print(address)
Output: {'coin': 'USDT', 'address': '0x1892e6d25a9d91dea9f9caac549261e601af97f8', 'tag': '', 'url': 'https://etherscan.io/address/0x1892e6d25a9d91dea9f9caac549261e601af97f8'}
***(I got my Eth Network Address as the output)***
print(USDTron)
Output: None
**The output was (None)**
uj5u.com熱心網友回復:
我相信你可能不太了解python字典get()方法的作用。
根據
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/477266.html
上一篇:將std::async與接收cv::OutputArray的方法一起使用以分配它不起作用
下一篇:將curl命令轉換為python
