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

本站现有博文338篇,共被浏览977694次

本站已经建立2690天!

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