Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

55 řádky
1.2 KiB

před 2 roky
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "code",
  5. "execution_count": null,
  6. "metadata": {},
  7. "outputs": [],
  8. "source": [
  9. "l = int(input(\"输入下限=\"))\n",
  10. "h = int(input(\"输入上限=\"))\n",
  11. "if l >= h:\n",
  12. " print(\"输入的下限应该小于上限\")\n",
  13. "else:\n",
  14. " print(\" 华氏 摄氏\")\n",
  15. " for f in range(l, h):\n",
  16. " c = 5 * (f - 32) / 9\n",
  17. " print(\"{:^8}{:^10.2f}\".format(f, c))"
  18. ]
  19. }
  20. ],
  21. "metadata": {
  22. "kernelspec": {
  23. "display_name": "Python 3",
  24. "language": "python",
  25. "name": "python3"
  26. },
  27. "language_info": {
  28. "codemirror_mode": {
  29. "name": "ipython",
  30. "version": 3
  31. },
  32. "file_extension": ".py",
  33. "mimetype": "text/x-python",
  34. "name": "python",
  35. "nbconvert_exporter": "python",
  36. "pygments_lexer": "ipython3",
  37. "version": "3.7.3"
  38. },
  39. "toc": {
  40. "base_numbering": 1,
  41. "nav_menu": {},
  42. "number_sections": true,
  43. "sideBar": true,
  44. "skip_h1_title": false,
  45. "title_cell": "Table of Contents",
  46. "title_sidebar": "Contents",
  47. "toc_cell": false,
  48. "toc_position": {},
  49. "toc_section_display": true,
  50. "toc_window_display": false
  51. }
  52. },
  53. "nbformat": 4,
  54. "nbformat_minor": 2
  55. }