[root@xiaoshui23:52:22~/test]#lltotal16drwxr-x"/>

Python简单计算,,环境:Python3


环境:Python3.5

技术分享

[root@xiaoshui23:52:22~/test]#lltotal16drwxr-xr-x.2rootroot4096Feb2222:45sed-rwxr-xr-x.1rootroot105Feb2723:47test01.py-rw-r--r--.1rootroot41Feb2723:48test02.shdrwxr-xr-x.2rootroot4096Feb2723:36tmp3[root@xiaoshui23:52:25~/test]#cattest01.py#!/usr/bin/envpython3#-*-coding:utf-8-*-s1=72s2=85r=s1/s2*100print(‘rate=%0.2f%%‘%r)[root@xiaoshui23:52:29~/test]#cattest02.sh#!/bin/bashpython/root/test/test01.py[root@xiaoshui23:52:32~/test]#bashtest02.shrate=84.71%[root@xiaoshui23:52:35~/test]#


本文出自 “学無止境” 博客,请务必保留此出处http://dashui.blog.51cto.com/11254923/1901683

Python简单计算

评论关闭