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

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

本站已经建立2538天!

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