stcaac 发表于 2015-12-15 08:54:51

I/O of python (INPUT / OUTPUT)

1. OUTPUT:
    1)standard output . expression or print
      like:>>>2*3+4
                10
                >>>result = 2*3+4
                >>>print result
                10

    2)file ouput. file operate
      like:>>>f = open(path,'w')
                >>>f.write('hello!')
                >>>f.close()
页: [1]
查看完整版本: I/O of python (INPUT / OUTPUT)