你可以这样写
name = input() names = [ "admin", "nukon", ... ] if name in names: print("hello %s, welcome to the system" % name) else: print("no such user")