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

本站现有博文324篇,共被浏览812233

本站已经建立2516天!

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