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

本站现有博文326篇,共被浏览823761

本站已经建立2529天!

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