STEEM POWER retention ratio of top 50 witnesses

by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/steem-power-retention-ratio-of-top-50-witnesses Hello, this is @joviansummer(witness: @jswit). Some time ago there was a bit of discussion on discord witness chanel about witnesses' power-down/cashing-out. So out of curiosity I just checked current ratio of witnesses' own STEEM POWER(VESTS) and all-time producer reward(VESTS). The ratio is calculated by the following simple formula: ratio(%) = account's own SP(MV) / all-time producer reward SP(MV) * 100% Ratio value less than 100% indicates power-down. If witness does additional power-up or gets other types of reward(e.g., curation reward), the ratio may exceed 100%. This does not take witness' other accounts into consideration. All-time producer reward data is from @steemchiller's SDS API. Here is the result: rank account own_sp prod_sp ratio 1 justyy 2188.411MV 1284.2MV 170.41% 2 steemchiller 982.134MV 124...

파이썬 리스트(list)에서 원소 제거

by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/35e956-list


파이선 리스트(list)의 원소를 제거하는 방법입니다. remove() 함수를 이용해서 간단하게 제거할 수 있습니다.

x_list = ['abc', 'def', 'xyz']

# 원소 'def' 삭제
x_list.remove('def')

# 예외 발생(존재하지 않는 원소)
x_list.remove('aaa')

remove() 함수를 이용할 때 리스트 원소에 포함되지 않은 값을 입력할 경우에는 예외(exception)가 발생합니다. 따라서, 아래와 같이 미리 확인을 한 후에 처리하는 것이 안전하겠습니다.

if 'def' in x_list:
  x_list.remove('def')
else:
  print("원소가 존재하지 않습니다.")

만약 같은 값을 가진 원소가 2개 이상 리스트에 있을 경우, remove() 함수는 가장 먼저 확인되는 - 인덱스값이 가장 낮은 - 원소 하나만 제거합니다. 모두 다 제거하려면 아래의 예시와 같이 while 구문을 사용하면 됩니다.

y_list = [1, 2, 3, 4, 5, 6, 4, 7, 4]

# 4를 모두 제거
while 4 in y_list:
  y_list.remove(4)

@joviansummer의 스팀 프로젝트

스팀 증인노드를 운영중입니다. @jswit에 증인투표해 주시면 감사하겠습니다.
(https://steemitwallet.com/~witnesses)

jswit 증인 노드 프로젝트를 시작합니다.

jsup 업보팅(upvoting) 서비스 소개

jsup 수혜자 지정 기능 추가

jsup 서비스에 큐레이션 보상 분배 기능이 추가되었습니다.

jSTEEM 프로젝트 - 텔레그램 챗봇으로 구현하는 스팀 블럭체인 탐색기

STEEM.NFT - 디지털 아트 보존 프로젝트



Posted through the AVLE Dapp (https://avle.io)

Comments

Popular posts from this blog

스티미언의 영향력 지수 계산

jsup/avle code update - you don't have to write post everyday

jsup/avle 보팅 코드 갱신 - 1일1포스팅 강박에서 벗어나기