结合AlignAfterOpenBracket(BracketAlignmentStyle
含)选项BinPackArguments
和BinPackParameters
设置false
,有可能得到以下格式:
someShortFunction(argument);
someVeryVeryVeryLongFunction(
argument1,
argument2,
argument3,
argument4);
Run Code Online (Sandbox Code Playgroud)
但是,类似于BreakBeforeBraces
,我想在右括号之前打破:
someShortFunction(argument);
someVeryVeryVeryLongFunction(
argument1,
argument2,
argument3,
argument4
);
Run Code Online (Sandbox Code Playgroud)
这可能与现有选项有关吗?
通过SSH可以轻松地从 Windows 进行 Linux 远程开发.
但是,另一种方式呢?我需要在Windows上构建和调试我的Visual C++应用程序,但我想在Linux系统上工作.
也许像Linux Powershell上的Powershell到Windows Powershell?
我有一个包含 DatetimeIndex(具有不规则间隔和时区信息)和两个值列的 DataField:
In: df.head()
Out:
v1 v2
2014-01-18 00:00:00.842537+01:00 130107 7958
2014-01-18 00:00:00.858443+01:00 130251 7958
2014-01-18 00:00:00.874054+01:00 130476 7958
2014-01-18 00:00:00.889617+01:00 130250 7958
2014-01-18 00:00:00.905163+01:00 130327 7958
In: df.index
Out:
<class 'pandas.tseries.index.DatetimeIndex'>
[2014-01-18 00:00:00.842537984, ..., 2014-01-18 00:10:00.829031936]
Length: 38558, Freq: None, Timezone: Europe/Berlin
Run Code Online (Sandbox Code Playgroud)
如果我以任何频率重新采样这个 DataField,时区将被保留:
In : df_3.resample('1S', 'mean',).head()
Out:
v1 v2
2014-01-18 00:00:00+01:00 130311.090909 7958.000000
2014-01-18 00:00:01+01:00 130385.125000 7958.000000
2014-01-18 00:00:02+01:00 130332.593750 7957.000000
2014-01-18 00:00:03+01:00 130377.061538 7957.307692
2014-01-18 00:00:04+01:00 130384.171875 7957.640625
Run Code Online (Sandbox Code Playgroud)
当引入任何 loffset 时,时间戳会被额外的负小时抵消:
In : df_3.resample('1S', 'mean', …
Run Code Online (Sandbox Code Playgroud) c++ ×1
clang-format ×1
linux ×1
pandas ×1
powershell ×1
python ×1
ssh ×1
visual-c++ ×1
windows ×1