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

本站现有博文333篇,共被浏览917491

本站已经建立2622天!

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