由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - a few very simple python commands
相关主题
Can I force/convert a string obj to a file obj in python ?An object of A automatically converted to an object of B.
How to convert ip to int using Python ? (转载)any tool to recommend to port c++ code from windows to linux
New "KENG" about Perl.新手请教Java数组问题
C++如何输入的一个小问题how to convert GMT to timestamp of the computer's current time
could anybody please tell me what " while(cin) {...}" means?perl sprintf question converting dec to hex
再问一下is it possible use VC 6.0 library file in .net
const_reverse_iterator和reverse_iterator有什么区别? (转载)why int** cannot convert to const int** ?
求改进小函数How to conver CString to long long type?
相关话题的讨论汇总
话题: bucky话题: 21话题: num2话题: mom话题: print
进入Programming版参与讨论
1 (共1页)
g****g
发帖数: 1828
1
>>> print "bucky is " + str(num)
bucky is 18
>>> num2=32
>>> print " my mom is " + `num2`
my mom is 32
>>> print " my mom is " + ` num2`
>>> print " my mom is " + repr(num2)
my mom is 32
>>> print " my mom is " + repr( num2)
my mom is 32
raw_input() converts everything including numbers to string.
input() inputs only numbers.
>>> 'bucky'[3]
'k'
>>> 'bucky '*10
'bucky bucky bucky bucky bucky bucky bucky bucky bucky bucky '
>>> [21]*10
[21, 21, 21, 21, 21, 21, 21, 21, 21, 21]
>>> name='ro
X****r
发帖数: 3557
2
What are you doing here?

【在 g****g 的大作中提到】
: >>> print "bucky is " + str(num)
: bucky is 18
: >>> num2=32
: >>> print " my mom is " + `num2`
: my mom is 32
: >>> print " my mom is " + ` num2`
: >>> print " my mom is " + repr(num2)
: my mom is 32
: >>> print " my mom is " + repr( num2)
: my mom is 32

c*******9
发帖数: 6411
3
思考猪, it seems you know everyting ( every programming language ), do you
always have chance to use them at work?
X****r
发帖数: 3557
4
No, I don't know every programming language ;-)
I only know some C, C++ and Javascript, limited Java,
a little bit Python and that's all. Yes I always have chance to use
them at work, except for C/C++, ironically :)

you

【在 c*******9 的大作中提到】
: 思考猪, it seems you know everyting ( every programming language ), do you
: always have chance to use them at work?

c*******9
发帖数: 6411
5
you do not use c/c++? what is your primary language at work? or maybe you
are a hardware engineer like thrust?
t****t
发帖数: 6806
6
no he is not. we hardware engineers use c/c++!

【在 c*******9 的大作中提到】
: you do not use c/c++? what is your primary language at work? or maybe you
: are a hardware engineer like thrust?

X****r
发帖数: 3557
7
JavaScript (so obviously I'm not a hardware engineer).

you

【在 c*******9 的大作中提到】
: you do not use c/c++? what is your primary language at work? or maybe you
: are a hardware engineer like thrust?

c*******9
发帖数: 6411
8
Javascript for adobe development?
X****r
发帖数: 3557
9
Javascript in web browsers.

【在 c*******9 的大作中提到】
: Javascript for adobe development?
1 (共1页)
进入Programming版参与讨论
相关主题
How to conver CString to long long type?could anybody please tell me what " while(cin) {...}" means?
Help with a c++ const variable再问一下
在C里面怎么验证一个input数字是不是超过int的范围?const_reverse_iterator和reverse_iterator有什么区别? (转载)
How to write a VB Macro to convert text to hyperlink in Excel求改进小函数
Can I force/convert a string obj to a file obj in python ?An object of A automatically converted to an object of B.
How to convert ip to int using Python ? (转载)any tool to recommend to port c++ code from windows to linux
New "KENG" about Perl.新手请教Java数组问题
C++如何输入的一个小问题how to convert GMT to timestamp of the computer's current time
相关话题的讨论汇总
话题: bucky话题: 21话题: num2话题: mom话题: print