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

本站现有博文312篇,共被浏览745224

本站已经建立2390天!

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