ボールドテキストSTAP細胞を調べたいです
なにがいけないんでしょうか
lang
1#-*- coding: utf-8 -*- 2 3import string, random 4 5def cell_gen(n): 6 count = 0 7 cause = string.ascii_uppercase + string.octdigits 8 for i in range(n): 9 count += 1 10 c_gen = "".join([random.choice(cause) for j in range(4)]) + "細胞 " 11 12 if c_gen == "STAP細胞": 13 return count 14 15 return "not found"
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。