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

本站现有博文311篇,共被浏览740077

本站已经建立2377天!

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