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

本站现有博文335篇,共被浏览937516

本站已经建立2648天!

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