from pycoingecko import CoinGeckoAPI
cg = CoinGeckoAPI()
a = cg.get_price(ids='litecoin', vs_currencies='rub')
#{'litecoin': {'rub': 4451.29}}
print(a)
如何取款 (#{'litecoin': {'rub': 4451.29}}) - 仅收费?
from pycoingecko import CoinGeckoAPI
cg = CoinGeckoAPI()
a = cg.get_price(ids='litecoin', vs_currencies='rub')
#{'litecoin': {'rub': 4451.29}}
print(a)
如何取款 (#{'litecoin': {'rub': 4451.29}}) - 仅收费?
像这样:
此代码将输出:
你也可以这样做:
此代码将输出: