EADST

Python: Terminal Input to List

Transfer Terminal Input to List

 # give the group number
 # 2
 # group one
 # 1 3 2
 # group two
 # 1 2 1 3 2
inputs = []
count = int(input())
for i in range(count):
    s = input()
    line = []
    for x in s.split():
        line.append(int(x))
    inputs.append(line)
print(inputs) # [[1, 3, 2], [1, 2, 1, 3, 2]]

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
LLAMA UI hf Sklearn C++ Windows QWEN GPT4 Firewall Clash Excel Interview git COCO EXCEL Python v2ray 财报 公式 Vmess Jupyter ResNet-50 CEIR HuggingFace FlashAttention Search Review OCR Translation CAM CLAP NLP 自我改进 Vim GoogLeNet v0.dev LaTeX Magnet Plotly ONNX Shortcut Claude Pandas InvalidArgumentError Jetson Card Pickle 算法题 SQL VGG-16 Transformers Django XGBoost Agent Algorithm ChatGPT CTC Nginx 长期记忆 Logo SQLite Attention 腾讯云 SPIE DeepStream 第一性原理 Hungarian Web NameSilo Conda 音频 TensorFlow VPN CSV 报税 Paper PyCharm OpenCV 证件照 Data torchinfo IndexTTS2 git-lfs llama.cpp Baidu HaggingFace PIP OpenAI Distillation icon BTC Ptyhon Crawler Quantization Docker scipy GIT News Proxy API网关 WAN Tensor Bitcoin Zip Quantize uwsgi 关于博主 Cloudreve PDB Rebuttal mmap 飞书 Password Linux Jev Bipartite Hilton 顶会 图形思考法 RL RAR uWSGI 版权 Land Datetime Gemma Qwen2 Bert diffusers printf FP32 Numpy Use Mixtral Heatmap Freesound 强化学习 YOLO Github SAM FastAPI BeautifulSoup Ubuntu CV 递归学习法 签证 Diagram Dataset Random GGML Animate Permission TensorRT AI GPTQ tqdm Statistics Git SVR Pytorch Qwen2.5 阿里云 WebCrawler API Breakpoint Michelin FP16 Markdown MD5 图标 Hotel Tiktoken BF16 搞笑 TTS Anaconda RGB ms-swift UNIX 多进程 Template LeetCode Math Streamlit Domain PyTorch Plate Knowledge Safetensors Color LLM 净利润 tar Pillow ModelScope Harness Llama 继承 Bin CUDA DeepSeek Website LoRA logger JSON CC Image2Text Miniforge Video Disk Input 论文 Food Qwen 云服务器 PDF VSCode FP64 Augmentation transformers 多线程 Tracking 论文速读 Base64 Google NLTK TSV FP8 Paddle XML 域名
站点统计

本站现有博文339篇,共被浏览1000175次

本站已经建立2710天!

热门文章
文章归档
回到顶部