GentBG x PUSSTEEM - burning both STEEM and PUSS

Image
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/gentbg-x-pussteem-burning-both-steem-and-puss Hello, this is @joviansummer(witness: @jswit), developer of GentBG project. I registered @gentbg account to PUSSTEEM about a week ago and donated some of my own PUSS token to @gentbg's EPUSS account. Now, @gentbg will burn STEEM and EPUSS at the same time. PUSSTEEM's boosting upvotes will help increasing baseline burning significantly. @gentbg's SP reward is delegate to @jsup to get automated upvotes, forming a baseline burning of liquid reward independent of other people's upvotes. Some may argue 100%(both liquid and SP reward) burning is much better, but I chose this approach to prevent @gentbg from becoming a spamming account. Constantly asking for upvotes via mentioning and commenting every week may eventually become a big annoyance to curators. That being said, anyone is welcome to participate in countering STEEM inflation by giving upvotes ...

파이썬 리스트(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포스팅 강박에서 벗어나기