所以我实际上正在使用twitteR,我需要一种方法将我的推文存储到csv文件中,并在需要时将其拉出来.这是因为我想编译我收集的推文然后将它们应用到我的算法以便稍后进行计算.所以,我想到了尝试
write.csv(tweets, file = "newfile", row.names = TRUE, sep = ',', col.names = TRUE)
Run Code Online (Sandbox Code Playgroud)
只有在创建数据框时才有效:/.我收集的推文看起来像这样
[[1]]
[1] "anonymous: boring!"
[[2]]
[1] "anonymous: random message !"
Run Code Online (Sandbox Code Playgroud)
...... ......
有任何想法吗?
编辑:我的str(推文)这只是我推出的3条推文
List of 3
$ :Reference class 'status' [package "twitteR"] with 17 fields
..$ text : chr "damn so many thing to settle @@"
..$ favorited : logi FALSE
..$ favoriteCount: num 0
..$ replyToSN : chr(0)
..$ created : POSIXct[1:1], format: "2013-10-11 14:15:59"
..$ truncated : logi FALSE
..$ replyToSID : …Run Code Online (Sandbox Code Playgroud) 我有一个大小为8的40位密钥,我想向它添加0填充,直到它变为56位.byteArray
byte[] aKey = new byte [8]; // How I instantiated my byte array
Run Code Online (Sandbox Code Playgroud)
有什么想法?
所以,我注意到我的一些顺风CSS在生产中没有正确生成,但在我的本地上表现良好,有什么想法吗?我正在使用,vue + tailwind + laravel + 惯性堆栈。另外,我在生产中部署任何东西都没有经验,因此我正在使用 digital ocean 的新“应用程序”。
生产
当地的
它应该是什么样子(本地)
这是我的 tailwind.config.js
module.exports = {
purge: [
'./resources/**/*.blade.php',
'./resources/**/*.js',
// './resources/**/*.vue',
],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
colors: {
gray: {
750: '#2d3748',
850: '#1a202c'
},
},
spacing: {
112: '28rem',
120: '30rem',
128: '32rem',
136: '34rem',
},
},
},
variants: {
extend: {},
},
plugins: [],
}
Run Code Online (Sandbox Code Playgroud)
我在构建生产中运行的命令
Build Command
composer …Run Code Online (Sandbox Code Playgroud) 所以我有两个班:Property和Houses.Property是抽象的超类,Houses是它的子类.
这是代码 Property
public abstract class Property{
String pCode;
double value;
int year;
public Property(String pCode, double value , int year){
this.pCode = pCode;
this.value = value;
this.year = year;
}
public Property(){
pCode = "";
value = 0;
year = 0;
}
public abstract void depreciation();
//Accessors
private String getCode(){
return pCode;
}
private double getValue(){
return value;
}
private int getYear(){
return year;
}
//Mutators
private void setCode(String newCode){
this.pCode …Run Code Online (Sandbox Code Playgroud)