0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【必読】笠松競馬場 12/30(木) 第3レース完全攻略マニュアル【water】

Last updated at Posted at 2021-12-22

はじめに

12/30(木)笠松競馬場第3レースの必勝法!?それは…

python

第1引数にはレースの頭数、第2引数には好きなワードを入れて実行しよう!すると…

import sys
import random

args = sys.argv

uma = 1
umatachi = int(args[1])
umas =[]

while uma <= umatachi:
    umas.append(uma)
    uma += 1

print(args[1]+'頭立て')

random.seed(args[2]) 
random.shuffle(umas) 

print(str(umas[0])+'-'+str(umas[1])+'-'+str(umas[2])) 

実行結果

おぼろげながら浮かんできたんです、数字が。

python tsun.py 10 やざわ
10頭立て
8-7-5

ちなみに

seed値に神聖三文字を入れて実行した結果は以下となる。真理に辿り着け。3連単に1万突っ込め。

10頭立て
7-5-9

ちゃんとするなら

"人気"とかパラメータ持ってウェイトをかけたりするかああああ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?