Guest User

Untitled

a guest
Jul 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. 复杂版:
  2. a=input()
  3. b=float(a)
  4. print(b)
  5.  
  6. 简单版:
  7. b=float(input(""))
  8. print(b)
  9.  
  10. 结果↓
  11. 输入 6
  12. 输出 6.0
  13.  
  14. 简单版里,input括号里的引号一定要加,不然程序会没反应
Add Comment
Please, Sign In to add comment