Skip to content

Instantly share code, notes, and snippets.

@sujuxiaoren
sujuxiaoren / iterable.py
Created August 4, 2020 17:20
sujuxiaoren's assignment #2
import datetime
from itertools import islice
max = int(input(f'To output the first n prime numbers, enter the value of n.'))
# Iterator 不用 islice
class prime1:
def __init__(self, count):
self.base = 0
@sujuxiaoren
sujuxiaoren / alpha.py
Created July 20, 2020 17:04
sujuxiaoren's assignment #1
import random
import time
import requests
from termcolor import colored
from simpleeval import simple_eval
class Bot:
### Keybase proof
I hereby claim:
* I am sujuxiaoren on github.
* I am liangvv (https://keybase.io/liangvv) on keybase.
* I have a public key ASBsL3ARP_NUTrzQX33zLKINFxdVecLJ1R3ij-XSH1Hn8Qo
To claim this, I am signing this object: