INNER CODE UNIT · Python

get_input

CrypToolProject/CrypTool-2 · LibSource/mpfr/build.vs19/run_dll_tests.py:21

def get_input(n):
  li = []
  while True:
    s = "list the numbers of those you wish to test [1 - " + str(n) +"] ? "
    if sys.version[0] == '3':
      r = input(s)
    else:
      r = raw_input(s)
    tl = []
    if len(r) == 0:
      return [i for i in range(len(li))]
    if r.find(',') != -1:
      tl = [u for u in r.split(',')]
    elif r.find(' ') != -1:
      tl = [u for u in r.split(' ')]
    else:
      tl = [r]
    for it in tl:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…