使用时
using System.Diagnostics;
Run Code Online (Sandbox Code Playgroud)
和
Debug.WriteLine("Test");
Run Code Online (Sandbox Code Playgroud)
运行应用程序后,输出中看不到"测试".但是,如果我使用msgbox函数,则会弹出msgbox,因此会到达该行.
我在错误的窗口寻找或者我需要改变什么?
我正在使用VC#Express.
所以你有一个阵列
1
2
3
60
70
80
100
220
230
250
Run Code Online (Sandbox Code Playgroud)
为了更好地理解:

你如何在python(v2.6)中对数组中的三个区域进行分组/聚类,因此在这种情况下你得到三个数组
[1 2 3] [60 70 80 100] [220 230 250]
背景:
y轴是频率,x轴是数字.这些数字是由它们的频率表示的十个最高幅度.我想从它们创建三个离散数字用于模式识别.可能会有更多的点,但所有这些点都按照相对较大的频率差异进行分组,如本例所示,在大约50和大约0之间以及大约100和大约220之间.请注意,什么是大的,什么是小变化但是与群组/群集的元素之间的差异相比,群集之间的差异仍然很大.
以下代码
plt.figure(1)
plt.subplot(211)
plt.axis([0,100, 95, 4000])
plt.plot(array1,array2,'r')
plt.ylabel("label")
plt.xlabel("label")
plt.subplot(212)
plt.specgram(array3)
plt.show()
Run Code Online (Sandbox Code Playgroud)
创建两个漂亮的图表.但是,如何在不关闭窗口的情况下更新其内容?
我需要在一个线程中创建窗口,并且在主代码中更新变量时,使用变量更新窗口.
你会怎么做?
$somedate = "1980-02-15";
$otherdate = strtotime('+1 year', strtotime($somedate));
echo date('Y-m-d', $otherdate);
Run Code Online (Sandbox Code Playgroud)
输出
1981-02-15
Run Code Online (Sandbox Code Playgroud)
和
$somedate = "1980-02-15";
$otherdate = strtotime('+2 year', strtotime($somedate));
echo date('Y-m-d', $otherdate);
Run Code Online (Sandbox Code Playgroud)
输出
1982-02-15
Run Code Online (Sandbox Code Playgroud)
但
$somedate = "1980-02-15";
$otherdate = strtotime('+75 year', strtotime($somedate));
echo date('Y-m-d', $otherdate);
Run Code Online (Sandbox Code Playgroud)
输出
1970-01-01
Run Code Online (Sandbox Code Playgroud)
怎么修?
python ×2
c# ×1
data-mining ×1
date ×1
dateadd ×1
debugging ×1
matplotlib ×1
php ×1
strtotime ×1