import numpy as np #加載numpy模塊并取名為np
import matplotlib.pyplot as plt
x=np.arange(0,2*np.pi,0.01)
y=np.sin(x)
plt.plot(x,y)
plt.title('sin(x)')
plt.xlabel('X')
plt.ylabel('Y')
plt.show()
下列選擇錯(cuò)誤的是( )
s=input("請(qǐng)輸入數(shù)字字符串")
i=0;j=0;k=6;sum=0
while j<len(s):
sum=sum+int(ch1)
while sum>k:
ch2=s[i]
i=i+1
if sum==k:
print("子串為:",)
break
j=j+1
else:
print("沒有滿足要求的子串。")