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

本站现有博文340篇,共被浏览1025368次

本站已经建立2720天!

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