Giter VIP home page Giter VIP logo

gussnum's Introduction

猜数字

猜数字游戏:系统随机生成四位千位数字,数字不能相同,用户有15次尝试机会,中途可以退出(放弃)游戏,系统告知答案并退出。 规则:1,对用户的输入进行判断,非法字符(只能含有数字)警告,不计入次数。2,重复数字警告,不计数。3,对合法输入技术 使用技术:signal.signal() 信号 使用ctr + z 发送系统信号 exit()退出最近循环 set(去重)

文件遍历

1:os.walk() 遍历文件下的所有文件,目录继续遍历 2:os.sep 路径分割符,win / linux / 可以替代兼容

gussnum's People

Contributors

chaowangwj avatar

Watchers

James Cloos avatar

Forkers

549106

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.