Skip to content

lhs1119/enumn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

import time

def timer(seconds): print(f"计时开始,时长:{seconds}秒") time.sleep(seconds)

ti

print("计时结束!")

if name == "main":

try: seconds =

int(input("请输入计时时长(秒):")) timer(seconds)

    timer(seconds)
exc

    timer(seconds)


    timer(second

    timer(s

    t

except ValueError:

    prin

    p

print("输入无效,请输入一个整数作为计时时长。")

``

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages