내용으로 건너뛰기
Out of the Box
사용자 도구
로그인
사이트 도구
검색
도구
문서 보기
이전 판
역링크
Fold/unfold all
최근 바뀜
미디어 관리자
사이트맵
로그인
>
최근 바뀜
미디어 관리자
사이트맵
추적:
•
2021-07_high-accuracy_model-based_reinforcement_learning_a_survey
•
2023-03_understanding_plasticity_in_neural_networks
•
welcome
•
paired_a_new_multi-agent_approach_for_adversarial_environment_generation
•
2024-07_diffusion_forcing_next-token_prediction_meets_full-sequence_diffusion
•
2024-01_masked_audio_generation_using_a_single_non-autoregressive_transformer
•
curl_contrastive_unsupervised_representations_for_reinforcement_learning
•
2024-04_a_survey_on_self-evolution_of_large_language_models
•
2024-04_player-driven_emergence_in_llm-driven_game_narrative
•
2024-01_coevolving_artistic_images_using_omnirep
sparkline
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
====== Sparkline ====== * https://rosettacode.org/wiki/Sparkline_in_unicode#Python * http://www.leancrew.com/all-this/2011/05/textexpander-sparkline-snippet/ <code python> # -*- coding: utf -*- import re try: raw_input except: raw_input = input # Unicode: 9601, 9602, 9603, 9604, 9605, 9606, 9607, 9608 try: bar = u'▁▂▃▄▅▆▇█' except: bar = '▁▂▃▄▅▆▇█' barcount = len(bar) - 1 while True: line = raw_input('Numbers please separated by space/commas: ') numbers = [float(n) for n in re.split(r'[\s,]+', line.strip())] mn, mx = min(numbers), max(numbers) extent = mx - mn sparkline = ''.join(bar[int( (n - mn) / extent * barcount)] for n in numbers) print('min: %5f; max: %5f' % (mn, mx)) print(sparkline) </code> {{tag>sparkling visualization unicode}}
sparkline.txt
· 마지막으로 수정됨:
2024/03/23 02:38
저자
127.0.0.1
문서 도구
문서 보기
이전 판
역링크
Fold/unfold all
맨 위로