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

本站现有博文327篇,共被浏览832984

本站已经建立2538天!

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