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

本站现有博文327篇,共被浏览828353

本站已经建立2534天!

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