首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

Python-100个小练习,自己学习用

前端 43.96KB 48 需要积分: 1
立即下载

资源介绍:

python小程序代码
''' 【程序94】 题目:时间函数举例4,一个猜数游戏,判断一个人反应快慢。(版主初学时编的) 1.程序分析: 2.程序源代码: ''' if __name__ == '__main__': import time import random play_it = raw_input('do you want to play it.(\'y\' or \'n\')') while play_it == 'y': c = raw_input('input a character:\n') i = random.randint(0,2**32) % 100 print 'please input number you guess:\n' start = time.clock() a = time.time() guess = int(raw_input('input your guess:\n')) while guess != i: if guess > i: print 'please input a little smaller' guess = int(raw_input('input your guess:\n')) else: print 'please input a little bigger' guess = int(raw_input('input your guess:\n')) end = time.clock() b = time.time() var = (end - start) / 18.2 print var # print 'It took you %6.3 seconds' % time.difftime(b,a)) if var < 15: print 'you are very clever!' elif var < 25: print 'you are normal!' else: print 'you are stupid!' print 'Congradulations' print 'The number you guess is %d' % i play_it = raw_input('do you want to play it.')

资源文件列表:

Python-100-Code-master.zip 大约有97个文件
  1. Python-100-Code-master/
  2. Python-100-Code-master/JCP001.py 583B
  3. Python-100-Code-master/JCP002.py 1.11KB
  4. Python-100-Code-master/JCP003.py 782B
  5. Python-100-Code-master/JCP004.py 649B
  6. Python-100-Code-master/JCP005.py 362B
  7. Python-100-Code-master/JCP006.py 245B
  8. Python-100-Code-master/JCP007.py 392B
  9. Python-100-Code-master/JCP008.py 530B
  10. Python-100-Code-master/JCP009.py 583B
  11. Python-100-Code-master/JCP010.py 374B
  12. Python-100-Code-master/JCP011.py 660B
  13. Python-100-Code-master/JCP012.py 589B
  14. Python-100-Code-master/JCP013.py 444B
  15. Python-100-Code-master/JCP014.py 699B
  16. Python-100-Code-master/JCP015.py 403B
  17. Python-100-Code-master/JCP017.py 535B
  18. Python-100-Code-master/JCP018.py 410B
  19. Python-100-Code-master/JCP019.py 569B
  20. Python-100-Code-master/JCP020.py 344B
  21. Python-100-Code-master/JCP021.py 418B
  22. Python-100-Code-master/JCP022.py 742B
  23. Python-100-Code-master/JCP023.py 579B
  24. Python-100-Code-master/JCP024.py 565B
  25. Python-100-Code-master/JCP025.py 412B
  26. Python-100-Code-master/JCP026.py 275B
  27. Python-100-Code-master/JCP027.py 329B
  28. Python-100-Code-master/JCP028.py 494B
  29. Python-100-Code-master/JCP029.py 560B
  30. Python-100-Code-master/JCP030.py 340B
  31. Python-100-Code-master/JCP031.py 1.17KB
  32. Python-100-Code-master/JCP032.py 178B
  33. Python-100-Code-master/JCP033.py 118B
  34. Python-100-Code-master/JCP034.py 237B
  35. Python-100-Code-master/JCP035.py 312B
  36. Python-100-Code-master/JCP036.py 500B
  37. Python-100-Code-master/JCP037.py 742B
  38. Python-100-Code-master/JCP038.py 401B
  39. Python-100-Code-master/JCP039.py 1.13KB
  40. Python-100-Code-master/JCP040.py 276B
  41. Python-100-Code-master/JCP041.py 512B
  42. Python-100-Code-master/JCP042.py 310B
  43. Python-100-Code-master/JCP043.py 431B
  44. Python-100-Code-master/JCP044.py 181B
  45. Python-100-Code-master/JCP045.py 204B
  46. Python-100-Code-master/JCP046.py 427B
  47. Python-100-Code-master/JCP047.py 581B
  48. Python-100-Code-master/JCP048.py 729B
  49. Python-100-Code-master/JCP049.py 1.08KB
  50. Python-100-Code-master/JCP051.py 235B
  51. Python-100-Code-master/JCP052.py 246B
  52. Python-100-Code-master/JCP053.py 245B
  53. Python-100-Code-master/JCP054.py 335B
  54. Python-100-Code-master/JCP055.py 275B
  55. Python-100-Code-master/JCP056.py 677B
  56. Python-100-Code-master/JCP057.py 698B
  57. Python-100-Code-master/JCP058.py 560B
  58. Python-100-Code-master/JCP059.py 1.25KB
  59. Python-100-Code-master/JCP060.py 829B
  60. Python-100-Code-master/JCP061.py 588B
  61. Python-100-Code-master/JCP062.py 389B
  62. Python-100-Code-master/JCP063.py 427B
  63. Python-100-Code-master/JCP064.py 610B
  64. Python-100-Code-master/JCP065.py 1.13KB
  65. Python-100-Code-master/JCP066.py 435B
  66. Python-100-Code-master/JCP067.py 813B
  67. Python-100-Code-master/JCP068.py 667B
  68. Python-100-Code-master/JCP069.py 634B
  69. Python-100-Code-master/JCP070.py 259B
  70. Python-100-Code-master/JCP071.py 831B
  71. Python-100-Code-master/JCP072.py 260B
  72. Python-100-Code-master/JCP073.py 270B
  73. Python-100-Code-master/JCP074.py 222B
  74. Python-100-Code-master/JCP075.py 296B
  75. Python-100-Code-master/JCP076.py 609B
  76. Python-100-Code-master/JCP077.py 442B
  77. Python-100-Code-master/JCP078.py 330B
  78. Python-100-Code-master/JCP079.py 448B
  79. Python-100-Code-master/JCP080.py 717B
  80. Python-100-Code-master/JCP081.py 411B
  81. Python-100-Code-master/JCP082.py 269B
  82. Python-100-Code-master/JCP083.py 304B
  83. Python-100-Code-master/JCP084.py 718B
  84. Python-100-Code-master/JCP085.py 406B
  85. Python-100-Code-master/JCP086.py 194B
  86. Python-100-Code-master/JCP087.py 307B
  87. Python-100-Code-master/JCP088.py 357B
  88. Python-100-Code-master/JCP089.py 655B
  89. Python-100-Code-master/JCP090.py 308B
  90. Python-100-Code-master/JCP091.py 257B
  91. Python-100-Code-master/JCP092.py 257B
  92. Python-100-Code-master/JCP093.py 267B
  93. Python-100-Code-master/JCP094.py 1.32KB
  94. Python-100-Code-master/JCP096.py 254B
  95. Python-100-Code-master/JCP097.py 431B
  96. Python-100-Code-master/JCP098.py 411B
  97. Python-100-Code-master/JCP099.py 468B
0评论
提交 加载更多评论
其他资源 111W1EDWQFEWGR
111FEWFQEFER
Fuse-Tech,若依vue后台管理项目
Fuse_Tech,若依vue魔改增强项目,集成自研流程服务:表格模式,引擎模式 后台管理系统 1.–观察者设计模式 练习 查看TestHelloController 2.模拟TO C环境, 使用内存预先缓存数据,使用算法匹配查询 3.增加SM4 SM4:无线局域网标准的分组数据算法。对称加密,密钥长度和分组长度均为128位。 我国国家密码管理局在20012年公布了无线局域网产品使用的SM4密码算法——商用密码算法。 软件架构 软件架构说明 流程服务表格模式
boost 实现xml 解析
boost中提供了对配置文件读取的支持:property_tree。 property_tree的核心基础是basic_ptree。其接口像std::list。可以执行很多基本的元素操作,比如使用begin()、end()等。此外还加入了操作属性树的get()、get_child()、get_value()、data()等额外的操作。
冰河之刃AsarHelper V.1 ASAR解包工具
拖入ASAR文件后,会自动填充好对应的参数供操作用。省心省事。【碰到权限问题时请使用管理员权限运行,注意在使用管理员运行时拖放功能可能不起作用,到时请使用最右边的“浏览”按钮选择ASAR文件。】 解包时会按照当天日期生成唯一文件夹
VT-ResNet脑肿瘤分类代码
在ResNet模型基础上加入VT模块
超市库存管理系统(大一)附带源文件zip
包含所有源代码
2024新版表情包小程序源码
2024新版表情包小程序源码 文件夹里面包含安装文件,前端代码,后端代码,和教程。 1、打开project.config.json文件修改你的appid和项目名 2、修改小程序名字(搜索南风表情包替换成你自己的名字) 3、替换域名 common中vendor.js第2771行 后端:Nginx 1.18.0+PHP-7.2+mysql5.6 开启ssl php需要安装 ###################################################################### 附带文本教学及视频教程安装方法以linux为例: 1、建议在服务器上面安装宝塔面板,以便操作,高逼格技术员可以忽略这步操作。 2、把安装包文件解压到根目录,同时建立数据库,把数据文件导入数据库 3、修改核心文件config/inc_config.php把数据库信息替换成你的 4、解析域名并且设置域名指向 5、修改伪静态规则(参考安装包内的文件) 6、效验域名能否正常打开,至此安装完毕注* PHP版本请设置5.3~5.5 7、其它版本未测试、数据文件导入注意编码UTF-8
2024新版表情包小程序源码 2024新版表情包小程序源码
VS code + 软件安装+指南
VS code + 软件安装+指南