import webbrowser # 判断数据类型 def get_cli(params): if params == "1": print("请输入大屏启动密码:") pwd = input("") if pwd == "lockdatav": return "成功登录大屏" else: return "密码错误!" elif params == "2": # 弹出说明文档链接地址 url = "https://www.kancloud.cn/jieji007/lockdata/1263995" webbrowser.open(url) # 防止返回None return "" else: return "请输入必选的命令序号,如:1" if __name__ == '__main__': print("漏刻有时(LockDataV)智能数据可视化大屏-pylock v1.0") print("=================================================") print("请输入操作命令序号:1.启动大屏; 2.说明文档") str_cli = input("") print(get_cli(str_cli))
lockdatav Done!