diff --git "a/\350\207\252\345\212\250\347\213\227\345\261\201\344\270\215\351\200\232\346\226\207\347\253\240\347\224\237\346\210\220\345\231\250.py" "b/\350\207\252\345\212\250\347\213\227\345\261\201\344\270\215\351\200\232\346\226\207\347\253\240\347\224\237\346\210\220\345\231\250.py" index 09a6e69c4c2167402d83e3977d5884721a393d96..164ddb8b8f222d9111366750e6e19fb0664d4601 100644 --- "a/\350\207\252\345\212\250\347\213\227\345\261\201\344\270\215\351\200\232\346\226\207\347\253\240\347\224\237\346\210\220\345\231\250.py" +++ "b/\350\207\252\345\212\250\347\213\227\345\261\201\344\270\215\351\200\232\346\226\207\347\253\240\347\224\237\346\210\220\345\231\250.py" @@ -174,10 +174,24 @@ xx = "å¦ç”Ÿä¼šé€€ä¼š" "说过一å¥å¯Œæœ‰å“²ç†çš„è¯", ] +é‡å¤åº¦ = 2 + +def 洗牌é历(列表): + global é‡å¤åº¦ + æ± = list(列表) * é‡å¤åº¦ + while True: + random.shuffle(æ± ) + for å…ƒç´ in æ± : + yield å…ƒç´ + +下一å¥åºŸè¯ = 洗牌é历(废è¯) +下一å¥å人å言 = 洗牌é历(å人å言) + def æ¥ç‚¹å人å言(): - xx = random.choice(å人å言) - xx = xx.replace( "a", random.choice(å‰é¢åž«è¯)) - xx = xx.replace( "b", random.choice(åŽé¢åž«è¯)) + global 下一å¥å人å言 + xx = next(下一å¥å人å言) + xx = xx.replace( "a",random.choice(å‰é¢åž«è¯) ) + xx = xx.replace( "b",random.choice(åŽé¢åž«è¯) ) return xx def å¦èµ·ä¸€æ®µ(): @@ -197,6 +211,6 @@ if __name__ == "__main__": elif 分支 < 20 : tmp += æ¥ç‚¹å人å言() else: - tmp += random.choice(废è¯) + tmp += next(下一å¥åºŸè¯) tmp = tmp.replace("x",xx) - print(tmp) \ No newline at end of file + print(tmp)