EADST

Python: Sum the Terminal Input

Python: Sum the Terminal Input

 while 1:
    s = input() # [1,2,3]
    if s != "":
       input_list = s.strip("[").strip("]").split(",")
       a = list(map(int, input_list[:]))
       print(sum(a)) # 6
    else:
        break

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

本站现有博文320篇,共被浏览757262

本站已经建立2422天!

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