Python 入门:
 1. from numpy import *
day 1 Python 学习笔记
python 【注意缩进】
外部输入: 变量名=int(input(''))

整段注释 """ """ 【注意对齐】

【range:】
  for i in range(0,4):   0,1,2,3

  for i in range(3)   0 , 1, 2

【print】
print ("the answer is" ,fib(10))
print("%d*%d=%d" % (i,j,i*j))

>>> print('''line1
... line2
... line3'''
)
line1
line2
line3


【time】
import time
time.sleep(1)

【append】
l.append(x)

【error】
1.invalid syntax  ------ print 无括号  (2 VS 3)
2. expected an indented block ------ 缩进

 

相关文章:

  • 2021-06-10
  • 2021-07-13
  • 2021-12-16
  • 2022-01-07
  • 2021-05-21
  • 2021-10-04
猜你喜欢
  • 2021-09-07
  • 2021-09-10
  • 2021-12-15
  • 2021-09-28
  • 2021-10-26
  • 2021-08-04
  • 2021-12-02
相关资源
相似解决方案