input和raw_input

简介:
1
2
3
4
5
6
7
8
9
10
python 2
#!/usr/bin/env python
#coding:utf-8
name=raw_input( "plese  input you name" )
print name
python3
#!/usr/bin/env python
#coding:utf-8
name=input( "plese  input you name" )
print name










本文转自 小小三郎1 51CTO博客,原文链接:http://blog.51cto.com/wsxxsl/1834916,如需转载请自行联系原作者
目录
相关文章
2.Text input and output
文本的输入和输出 输出 要在屏幕上输出文本你需要这样一行代码: print("Hello World") 如果输出多行,要添加符号“\n”: print("Hello World\nThis is a message") 输出值的话: x = 3 print(x) 输出多行数值: ...
627 0
|
应用服务中间件 Linux PHP
|
关系型数据库 MySQL 数据库管理
|
关系型数据库 MySQL 数据库管理
(standard input): No keywords in input file
(standard input): No keywords in input file
132 0
input的on(‘input’,function(0{})事件
  $('div[name="swlw"]').on('input',function(e){   function(){};      });
1235 0
解决AssertionError: size of input tensor and input format are different.tensor shape: (3, 138input_for
解决AssertionError: size of input tensor and input format are different.tensor shape: (3, 138input_for
493 0
|
5月前
|
机器学习/深度学习 计算机视觉 Python
output
【9月更文挑战第14天】
72 1

热门文章

最新文章